LessThanOrEquals method (number)

Returns a value indicating whether this number is less than or equal to a specified number.

Syntax

number1.LessThanOrEquals(number2)

Returns true if number1 is less than or equal to number2; otherwise, false.

Example

{% Var value1 = 7 %}
{% Var value2 = 2 %}

Answers: {{ value1.LessThanOrEquals(value2) }},
         {{ value2.LessThanOrEquals(value1) }},
         {{ value1.LessThanOrEquals(7) }}

The above example would output: Answers: False, True, True