Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 721 Bytes

File metadata and controls

43 lines (33 loc) · 721 Bytes
layout language permalink command related_commands
api-command
Java
api/java/le/
le
eq ne gt ge lt
eq/
ne/
gt/
ge/
lt/

Command syntax

{% apibody %} value.le(value[, value, ...]) → bool {% endapibody %}

Description

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

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

r.table("players").get(1).g("score").le(10).run(conn);

Example: Test if variables are ordered from highest to lowest.

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

This is the equivalent of the following:

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