Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OR 1 1

Status
Not open for further replies.

mimi2

Technical User
Joined
Apr 2, 2002
Messages
407
Location
CA
hello,
Could you tell me what exactly this means
Thanks
<CFIF NOT IsDefined(&quot;application.initialized&quot;) OR 1>
<CFINCLUDE TEMPLATE=...>
</CFIF>
From where would the &quot;1&quot; come ?
 
Hey Mimi,

The &quot;Not Isdefined(application.initialized)&quot; checks for the existence of an application variable &quot;initialized&quot;. If it has been created, the isdefined() function returns TRUE, the NOT negates it, and the <cfinclude> is not executed.

In this case, the <cfif> statement will always run because the &quot;or 1&quot; always evaluates to true regardless of the first part. My guess is that's part of some debugging code that was put in to test the <cfinclude> code.

It looks like the code inside the <cfif> statement runs when the application is first run to setup global variables and such. I'm guessing someone was troubleshooting and put that in to make sure the initialization code ran even though the app had already initialized.

Hope this helps,
GJ
 
Thanks alot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top