What part don't you understand?  Your example looks correct.  Cold
Fusion's "EQ" and "IS" are equivalent and can be used to compare strings
or numeric values.

The "go to page..." part could be done either with CFLOCATION or by
CFINCLUDE'ing the desired page.  You'll be forced to use CFLOCATION if the
page isn't local.

Something like:

<CFIF Browser EQ Stanadard>
  <CFLOCATION template="pagea.cfm">
<CFELSE>
  <CFLOCATION template="pageb.cfm">
</CFIF>

Jim


-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, August 04, 2000 11:08 AM
Subject: (syntax) comparing two variables


>How do I compare the text contents of two variables?  I want to say
>
>(did two CF sets to give values to variables named Browser and Standard)
>
><CFIF Browser EQ Standard>
>Go to page A
><CFELSE>
>Go to page B
></CFIF>
>
>I'm guessing I want to use Compare (Browser, Standard).  But how so I
write
>the syntax and where do I do the test?
>
>Thank you!
>:-)
>Oriole at MarkSport.com

------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_community or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to