|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Question about variables..
I have like...
<cfif something happens> <cfset boo = 'wee'> </cfif> <cfif something else happens> hello </cfif> so basically i was wondering how to do an cfif to see if a variable is defined or not |
|
#2
|
|||
|
|||
|
Do you mean:
<cfif structKeyExists( variables, 'someVarName' )> someVarName is defined and exists in the variables scope! </cfif>
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
Do you want to know if the variable boo is defined or not?
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Question about variables.. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|