You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

gt()

Usage

gt(val1, val2)

Description
Returns a boolean value that indicates whether the numerical value val1 is greater than the numerical value val2. This method tries to convert its parameter objects into numerical values, i.e. you can compare strings numerically. It is often used in conjunction with size() to determine if a collection is empty or not.

Example

${gt(1, 2)}

results in

false

Search results for "gt()"

gt()

Returns a boolean value that indicates whether the numerical value val1 is greater than the numerical value val2. This method tries to convert its parameter objects into numerical values, i.e. you can compare strings numerically. It is often used in conjunction with size() to determine if a collection is empty or not.

gt(val1, val2)