use CompareNoCase instead for string comparison. it's faster too. <CFIF NOT CompareNoCase(a,b)>0123456 IS 123456<CFELSE>Not equal</CFIF>
Duncan Cumming IT Manager http://www.alienationdesign.co.uk mailto:[EMAIL PROTECTED] Tel: 0141 575 9700 Fax: 0141 575 9600 Creative solutions in a technical world ---------------------------------------------------------------------- Get your domain names online from: http://www.alienationdomains.co.uk Reseller options available! ---------------------------------------------------------------------- ---------------------------------------------------------------------- "Allan Cliff" <[EMAIL PROTECTED] To: "CF - List" <[EMAIL PROTECTED]> .net> cc: Subject: [ cf-dev ] Comparing STRINGS / NUMBERS 03/10/03 11:14 AM Please respond to dev Right If I remember rightly this has been a topic before but how did it finish. I have a STRING "123456" as a password. And I want to change it to "0123456" but one if the rules is. newpassword can't be equal to oldpassword. I did this to check <CFSET a = "0123456"> <CFSET b = "123456"> <CFIF a IS b>0123456 IS 123456<CFELSE>Not equal</CFIF> a the bar steward said they were equal. Did CF convert the string to a number before comparing. Thanks Allan -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
