Comparison

Comparison functions and operators.

Comparison Operators

The following native comparison operators are available directly on any of the dsl.Operable instances:

Operator

Description

==

Equal

!=

Not equal

<

Less than

<=

Less than or equal to

>

Greater than

>=

Greater than or equal to

Examples

>>> ETL = (
...     Student
...     .select(Student.surname)
...     .where(Student.level == 5 & Student.score < 2)
... )