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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the CF operator for != or <>? 1

Status
Not open for further replies.

danielhai

Programmer
Joined
Oct 23, 2001
Messages
25
Location
US
I'm new to CF, and would like to know what the equivalent operator to C++'s != or VB's <> is in CF.

I've tried:

<CFIF variable is not &quot;&quot;>

but that doesn't work. I've looked for docs everywhere, but can't find it. I know this is simple ... any help?

dan
 
If your looking to see if the variable exist:
<cfif IsDefined(&quot;variable&quot;)>do stuff</cfif>

Or to see if empty string:
<cfif NOT Compare(variable, &quot;&quot;)>do stuff</cfif>
 
thanks very much.

is there an equivalent for Response.Redirect in asp? Or anything else that will add a redirect header in the page?
 
Take a look at cflocation.

<CFLOCATION URL=&quot;url&quot; ADDTOKEN=&quot;Yes/No&quot;>

Also check out cfinclude if you aren't familiar with it already.

<CFINCLUDE TEMPLATE=&quot;template_name&quot;>

where template name references a logical path. John Hoarty
jhoarty@quickestore.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top