ReQL command reference - RethinkDB
Command syntax
value.ne(value[, value, ...]) → bool
value != value → bool
Description
Test if two or more values are not equal.
Example: See if a user’s role field is not set to administrator.
r.table('users').get(1)['role'].ne('administrator').run(conn)
# alternative syntax
(r.table('users').get(1)['role'] != 'administrator').run(conn)
Example: See if three variables do not contain equal values.
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