X³ DMI Operators Documentation
Here is a full list of comparison, mathematical, and special operators used in X³.
Comparison Operators
| Operator | Description | Example |
| == | Equal to | if a == b |
| != | Not equal to | if a != b |
| > | Greater than | if a > b |
| < | Less than | if a < b |
| >= | Greater than or equal | if a >= b |
| <= | Less than or equal | if a <= b |
| !== | Strict inequality (not identical) | if a !== b |
| is | Checks if two variables reference the same object | if a is b |
| is not | Checks if two variables reference different objects | if a is not b |
| |+| | Similarity Percentage | if "hello" |+| "helo" > 80 |
String Operators
| Operator | Description | Example |
| startswith | Checks if a string starts with another | if text startswith "Hello" |
| endswith | Checks if a string ends with another | if text endswith "World" |
| contains | Checks if a string contains another | if text contains "lo" |
| !contains | Checks if a string does not contain another | if text !contains "xyz" |
| equals_ignore_case | Case-insensitive equality | if text equals_ignore_case "HELLO" |
Length-Based Operators
| Operator | Description | Example |
| len== | Checks if length of a value equals a number | if text len== 5 |
| len!= | Checks if length of a value is not a number | if text len!= 5 |
| len> | Checks if length of a value is greater than a number | if text len> 5 |
| len< | Checks if length of a value is less than a number | if text len< 5 |
Special Operators
| Operator | Description | Example |
| |+| | Checks the similarity percentage between two strings. | if var1 |+| var2 |