Smaller than

Syntax

	$e1 < $e2

$e1.lt($e2)

Description

Indicates whether the result of e1 is less than that of e2.

Parameter

Name Type Description Mandatory Default
e1 Number/string/set Object to be compared with e2. yes
e2 Number/string/set Object to be compared with e1. yes

Return value

Type: Boolean

true, if the result of the evaluation says that e1 is smaller than e2.

Examples

Numbers

	1 < 2

Output: true

Sets

	list(1, 2, 3).lt(list(1, 2, 4))

Output: true

Since sets are compared element by element, the first set is smaller than the second because the number 3 is smaller than the number 4 (see comparison operators).

Equal sets

	list(1, 2, 3).lt(list(1, 2, 3))

Output: false

The sets are the same size.