# COMPARE()

Syntax:

Then: xx=COMPARE(expr1,expr2)

"expr1" and "expr2" are the two values to compare.

Return values:

-1 if expr1 is less than expr2.

0 if expr1 equals expr2.

1 if expr1 is greater than expr2.

Version Ref: 4.5

Description:

Compares two values, with case sensitivity.

Examples:

Ask for a password and require the case to be correct.

If:

Then: inputpw popup pw "Enter password: "

If: compare (pw,password) ne "0"

Then: errorbox "Incorrect password" ; end