Spec-Zone.ru › RethinkDB java

ReQL command: lt

Command syntax

value.lt(value[, value, ...]) → bool

Description

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).g("score").lt(10).run(conn);

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

int a = 20;
int b = 10;
int c = 15;
r.lt(a, b, c).run(conn);

This is the equivalent of the following:

r.lt(a, b).and(r.lt(b, c)).run(conn);

Related commands

  • eq
  • ne
  • gt
  • ge
  • le

© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
https://rethinkdb.com/api/java/lt/

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API