Skip to content
Maciej Klemarczyk edited this page Oct 22, 2021 · 12 revisions

Welcome to the ketupa predicates wiki!

Syntax

  • { - Predicate opening
  • } - Predicate closing
  • , - Argument separator
  • $data - External variable
  • \ - Token escape, treats syntax characters as part of the text

More information

Examples

  • {=, 31, 41} - Number 31 is equal to number 41
  • {=, $data, 12\,33\, 12} - Value of $data is equal to text 12,33, 12
  • {=, $data, 41} - Value of $data is equal to number 41
  • {AND, {=, $data, 42}, {=,$user,11}} - Value of $data is equal to number 42 and value of $user is equal to number 11
  • {OR, {=, $data, 42}, {=,$user,11}} - Value of $data is equal to number 42 or value of $user is equal to number 11

Note

All comparisons are done using string type. Next version expects to compare values using type specific methods. The comparison for the NOT operator ignores the case of characters.