Compares "a" to "b" and return "true" if "a" is greater than "b".
Expression | Result |
---|---|
'Hello'.greaterThan('Abc') | true |
'Hello'.greaterThan('Hello') | false |
Compares "a" to "b" and return "true" if "a" is greater than or equal to "b".
Expression | Result |
---|---|
'Hello'.greaterThanEqual('Abc') | true |
'Hello'.greaterThanEqual('Hello') | true |
Compares "a" to "b" and return "true" if "a" is less than "b".
Expression | Result |
---|---|
'Hello'.lessThan('Hello') | false |
'Hello'.lessThan('World') | true |
Compares "a" to "b" and return "true" if "a" is less than or equal to "b".
Expression | Result |
---|---|
'Hello'.lessThanEqual('Hello') | true |
'Hello'.lessThanEqual('World') | true |