Table of Contents

Comparing Strings

Code

if (orxString_Compare("String One", "String Two") == 0) {
  // is the same			
} else {
  // is not the same
}
 
int value = orxString_Compare("aa", "ab"); //value is -1 (smaller)
 
int value2 = orxString_Compare("ab", "aa"); //value2 is 1 (larger)

More Information

For more details on string comparison, see the API entry.