Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (27 sloc) 677 Bytes
layout language permalink command related_commands
api-command
Python
api/python/ne/
!=, ne
&, and_ |, or_ ==, eq
and/
or/
eq/

Command syntax

{% apibody %} value.ne(value[, value, ...]) → bool value != value → bool {% endapibody %}

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.

r.ne(a, b, c).run(conn)
You can’t perform that action at this time.