({{, (RefLink[LessThan, paclet:ref/LessThan])[y] 
is an operator form that yields x<y when applied to an expression x.}})

OpenersNotesSection(Spacer1)Details

(RefLink[LessThan, paclet:ref/LessThan])[y][x] is equivalent to (RefLink[Less, paclet:ref/Less])[x,y].

OpenersPrimaryExamplesSection(Spacer1)Examples  (10)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Check numeric order:

LessThan[4][2]

For symbolic expressions, the result is given as an inequality:

LessThan[y][x]

Select the numbers that are smaller than 10 in a list:

Select[{0,5,10,15},LessThan[10]]

OpenersExampleSection1(Spacer1)Scope  (4)

Use (RefLink[LessThan, paclet:ref/LessThan]) with numbers:

LessThan[10][6]

Use (RefLink[LessThan, paclet:ref/LessThan]) with numeric (RefLink[Quantity, paclet:ref/Quantity]) objects:

LessThan[Quantity[1,"Hour"]][Quantity[50,"Minutes"]]

Use (RefLink[LessThan, paclet:ref/LessThan]) with dates:

LessThan[Today][Yesterday]

LessThan[(DateObject["Day: ""Sat 1 Aug 2015", DateObject[{2015,8,1},"Day","Gregorian",-6.`]])][(DateObject["Day: ""Mon 1 Jun 2015", DateObject[{2015,6,1},"Day","Gregorian",-6.`]])]

Use symbolic values:

LessThan[5][x]

LessThan[x][5]

OpenersExampleSection3(Spacer1)Applications  (1)

Countries with small area:

EntityValue[EntityClass["Country",{"Area"->LessThan[Quantity[100,"Kilometers"^2]]}],"Entities"]

OpenersExampleSection4(Spacer1)Properties & Relations  (2)

Obtain the populations of the class of countries with an area smaller than 100 square kilometers:

EntityValue[EntityClass["Country",{"Area"->LessThan[Quantity[100,"Kilometers"^2]]}],"Population"]

This is the total:

Total[%]

The same total can be obtained using the (RefLink[Entity, paclet:ref/Entity]) object combining those countries:

EntityValue[Entity["Country",{"Area"->LessThan[Quantity[100,"Kilometers"^2]]}],"Population"]

Compare the alternative notations:

Select[{0,5,10,15},Less[#,10]&]

Select[{0,5,10,15},LessThan[10]]

Select[LessThan[10]][{0,5,10,15}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Less, paclet:ref/Less])  ▪  (RefLink[LessEqualThan, paclet:ref/LessEqualThan])  ▪  (RefLink[GreaterThan, paclet:ref/GreaterThan])  ▪  (RefLink[GreaterEqualThan, paclet:ref/GreaterEqualThan])  ▪  (RefLink[ContainsOnly, paclet:ref/ContainsOnly])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Testing Expressions, paclet:guide/TestingExpressions])}, {▪(RefLinkPlain[Knowledge Representation & Access, paclet:guide/KnowledgeRepresentationAndAccess])}})}})