Complex Expressions
Complex expressions can be used for the value_data field by using:
- ||: conditional OR
- &&: conditional AND
- |: binary OR (bit operation)
- &: binary AND (bit operation)
- ( and ): to delimitate complex expressions
Note: These operators combine or compare values within a single value_data expression. There is no ! or NOT operator to negate an expression directly. To check that a value does not equal or match something, use check_type: CHECK_NOT_EQUAL or CHECK_NOT_REGEX (see The "check_type" Field). To invert the pass/fail result of an entire check, use if/then/else logic (see Conditions).
Examples
value_data: 45 || 10
value_data: (45 || 10) && ([9..12] || 37)