Skip to main content
Version: 1.0

Functions and Operators

Most operators in Vectara have the same precedence and are left-associative. You need to use parenthesis to enforce a different precedence.

The following table indicates the supported operators and their precedence (highest to lowest). Non-binary operators do not specify associativity.

OperatorAssociativityDescription
+, --unary plus and minus
*, /, %leftmultiplication, division, modulo
+, -leftaddition, subtraction
<, <=, >, >=leftcomparison
=, ==, !=, <>leftcomparison
IS NULL, IS NOT NULL-NULL comparison
IN-range containment
NOT-logical negation
ANDleftlogical conjunction
ORleftlogical disjunction