Relations

You use relations to compare values in the Relevance language. There are the standard alpha and numeric comparators (=, !=, <, >, >=, <=) as well as a few strictly string relations (starts with, ends with, contains, is contained by).

Relations return a Boolean TRUE or FALSE depending on the outcome of the comparison.

Here are some examples of expressions that use relations:

  • Q: 1 < 2
  • A: True
  • Q: "the whole" is greater than "the sum of the parts"
  • A: True
  • Q: "nowhere" starts with "now"
  • A: True
  • Q: "nowhere" ends with "here"
  • A: True
  • Q: "nowhere" contains "her"
  • A: True
  • Q: "he" is contained by "nowhere"
  • A: True