Compare (string1,  string2) 


Performs a case-sensitive comparison of two strings. Returns the following:

  • 1, if string1 is less than string2

  • 0, if string1 is equal to string2

  • 1, if string1 is greater than string2


 <cfoutput>   Compare dogs and Dogs: #compare('dogs', 'Dogs')#   Compare bunnies and bunnies: #compare('bunnies', 'bunnies')#   Compare dogs and bunnies: #compare('dogs', 'bunnies')#  </cfoutput>  

Inside ColdFusion MX
Inside Coldfusion MX
ISBN: 0735713049
EAN: 2147483647
Year: 2005
Pages: 579 © 2008-2017.
If you may any questions please contact us: