strcmp

Syntax

native strcmp(const string1[], const string2[], ignorecase=0);

Usage

string1
First string (left).
string2
Second string (right).
ignorecase
If true, comparison is case insensitive.
If false (default), comparison is case sensitive.

Description

Compares two strings lexographically.

Return

-1 if string1 < string2
0 if string1 == string2
1 if string1 > string2