Question
variable type
I thought I saw the other day someone do something like
<cfif VariableType( myVariable ) EQ "struct"> do this...
where VariableType was some CFML function call. I was looking for something else at the time and didn't note the post.
I know I can do isStruct( myVariable ), isArray, isObject, etc. Is there a single function call that returns the type so I can just use a switch on the returned value?
<cfif VariableType( myVariable ) EQ "struct"> do this...
where VariableType was some CFML function call. I was looking for something else at the time and didn't note the post.
I know I can do isStruct( myVariable ), isArray, isObject, etc. Is there a single function call that returns the type so I can just use a switch on the returned value?