Back to top

ReQL command: lt

Command syntax[, value, ...]) → bool


Compare values, testing if the left-hand value is less than the right-hand.

Example: Test if a player has scored less than 10 points.

r.table('players').get(1)('score').lt(10).run(conn, callback);

Example: Test if variables are ordered from highest to lowest, with no values being equal to one another.

var a = 20, b = 10,c = 15;, b, c).run(conn, callback);

This is the equivalent of the following:, b).and(, c)).run(conn, callback);

Get more help

Couldn't find what you were looking for?