Used to test if two values are equal. If needed, the == operator will automatically convert the type of a value to perform the comparison.
1.8.3 or later.
| Output | ||
| true | |
| true |
Used to test if two values are not equal. If needed, the != operator will automatically convert the type of a value to perform the comparison.
1.8.3 or later.
| Output | ||
| false | |
| false |
Used to test if two values are equal. The === operator only succeeds if the two values have the same type and are equal.
1.8.3 or later.
| Output | ||
| false | |
| true |
Used to test if two values are not equal. The !== operator only fails if the two values have the same type and are equal.
1.8.3 or later.
| Output | ||
| true | |
| false |
Returns returns true if the first operand is less than the second, false otherwise. Both operands must be convertible to the same type, which must be one of bool, num, or str. If the operands cannot be converted to one of these types, the operator will evaluate to nil. Otherwise, they are compared as follows: for values of type bool or num the values are compares numerically; for values of type str the characters of the string are compared first to last according to the current locale.
1.8.3 or later.
| Output | ||
| false
| |
| true |
Returns returns true if the first operand is less than or equal to the second, false otherwise. Both operands must be convertible to the same type, which must be one of bool, num, or str. If the operands cannot be converted to one of these types, the operator will evaluate to nil. Otherwise, they are compared as follows: for values of type bool or num the values are compares numerically; for values of type str the characters of the string are compared first to last according to the current locale.
1.8.3 or later.
| Output | ||
| true
| |
| true |
Returns returns true if the first operand is greater than or equal to the second, false otherwise. Both operands must be convertible to the same type, which must be one of bool, num, or str. If the operands cannot be converted to one of these types, the operator will evaluate to nil. Otherwise, they are compared as follows: for values of type bool or num the values are compares numerically; for values of type str the characters of the string are compared first to last according to the current locale.
1.8.3 or later.
| Output | ||
| true
| |
| false |
Returns returns true if the first operand is greater than the second, false otherwise. Both operands must be convertible to the same type, which must be one of bool, num, or str. If the operands cannot be converted to one of these types, the operator will evaluate to nil. Otherwise, they are compared as follows: for values of type bool or num the values are compares numerically; for values of type str the characters of the string are compared first to last according to the current locale.
1.8.3 or later.
| Output | ||
| false
| |
| false |
| Images 0 | ||
|---|---|---|
| No images to display in the gallery. |
Copyright © 2011 MindTouch, Inc. Powered by