House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / ColdFusion Talk (CF-Talk)

Compare digits as strings not integers

Author:
Claude Schneegans
04/28/2008 04:16 PM

Use the Compare() function, ie: <CFSET oldcompany = '033'> <CFSET newcompany = '0033'> <CFOUTPUT>#(oldcompany EQ newcompany)#<BR> #(Compare(oldcompany, newcompany) EQ 0)# </CFOUTPUT> -- _______________________________________ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: piegeacon@internetique.com) Thanks.


Search cf-talk

June 19, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
             1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30             

Designer, Developer and mobile workflow conference