Since CF is loosely typed
<cfset x = "0.00">
<CFIF x EQ 0>
1:true
</CFIF>
<CFIF NOT x>
2:true
</CFIF>
<CFIF x EQ 0.00>
3:true
</CFIF>
results in:
1:true
2:true
3:true
HTH,
Duane
-----Original Message-----
From: Phoeun Pha [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 3:20 PM
To: CF-Talk
Subject: CF number question
I have a form variable whose value is "0.00"
if I do a conditional, would this be right?
<CFIF Form.Variable EQ 0>
TRUE
<CFELSE>
False
</CFIF>
what i am saying is, will "0.00" be the same as 0? will it read it as a
string or a number? or sometimes? explain!
thanx
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists