Relevance Key Phrases

This section presents an alphabetized table of the keywords in the Relevance language, along with their grammatical values.

KeywordEffect Grammatic Value
aIgnored by the relevance evaluator. Used to improve readability.<none>
anIgnored by the relevance evaluator. Used to improve readability.<none>
andThe logical AND operator. Doesn’t evaluate the right hand side if the left hand side is false. and
asThe typecast operator, used to convert one type to another.as
containsReturns TRUE when a string contains another string as a substring. relation
does not containEquivalent to ‘not contains’. relation
does not end withReturns TRUE when a string does not end with the specified substring. relation
does not equalEquivalent to ‘is not’.relation
does not start withReturns TRUE when a string does not start with the specified substring.relation
elseDenotes the alternative path in an ‘if-then-else’ statement.else
ends withReturns TRUE when a string ends with the specified substring. relation
equalsEquivalent to ‘is’. relation
existReturns a boolean TRUE / FALSE indicating whether an object exists. exists
exist noEquivalent to ‘not exist’.not exists
existsEquivalent to ‘exist’.exists
exists noEquivalent to ‘not exist’.not exists
ifThe keyword to begin an ‘if-then-else’ expression. if
isReturns TRUE when two objects are equal. Note that not all objects can be tested for equality. Equivalent to the ‘=’ operator.relation
is contained byReturns TRUE when a string contains another string as a substring. relation
is equal toEquivalent to ‘is’. relation
is greater thanThe ‘>’ comparison. relation
is greater than or equal toThe ‘>=’ comparison. relation
is less thanThe ‘<’ comparison. relation
is less than or equal toThe ‘<=’ comparison. relation
is notReturns TRUE when two objects are not equal. Note that not all objects can be compared with this keyword. relation
is not contained byReturns TRUE when a string does not contain another string as a substring. relation
is not equal toEquivalent to the keyword ‘is not’ and the ‘!=’ operator. relation
is not greater thanEquivalent to is less than or equal to or ‘<=’.relation
is not greater than or equal toEquivalent to is less than or ‘<’.relation
is not less thanEquivalent to is greater than or equal to or ‘>=’.relation
is not less than or equal toEquivalent to is greater than or ‘>’. relation
itA reference to the closest direct object or ‘whose’ clause. it
itemUsed to index into a tuple. Always returns a singular value.phrase
itemsEquivalent to item, but returns a plural value. phrase
modThe modulo operator. mod
notThe logical NOT operator. relation
numberReturns the number of results in an expression. phrase
ofUsed to access a property of an object. of
orThe logical OR operator. Doesn’t evaluate the right hand side if the left hand side is true. or
starts withReturns TRUE when a string begins with the specified substring.relation
theIgnored by the relevance evaluator. Used to improve readability.<none>
thenDenotes the main path to take in an if-then-else expression. then
there do not existEquivalent to ‘not exist’. not exists
there does not existEquivalent to ‘not exist’. not exists
there existEquivalent to ‘exist’. exists
there exist noEquivalent to ‘not exist’. not exists
there existsEquivalent to ‘exist’. exists
there exists noEquivalent to ‘not exist’. not exists
whoseUsed along with the ‘it’ keyword to filter plural results. whose