ge
ReQL command: ge
Command syntax
value.ge(value[, value, ...]) → bool
Description
Compare values, testing if the left-hand value is greater than or equal to the right-hand.
Example: Test if a player has scored 10 points or more.
r.table("players").get(1).g("score").ge(10).run(conn);
Example: Test if variables are ordered from lowest to highest.
int a = 10; int b = 20; int c = 15; r.ge(a, b, c).run(conn);
This is the equivalent of the following:
r.ge(a, b).and(r.ge(b, c)).run(conn);
Related commands
Get more help
Couldn't find what you were looking for?
- Ask a question on Stack Overflow
- Chat with us and our community on Slack
- Talk to the team on IRC on #rethinkdb@freenode.net — via Webchat
- Ping @rethinkdb on Twitter
- Post an issue on the documentation issue tracker on GitHub
© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
https://rethinkdb.com/api/java/ge/