Overview
The Command Validation command provides functionality for:- Validating that required strings exist in the data (
includemode) - Validating that specific strings are absent from the data (
excludemode) - Combining multiple values with
ORlogic (any match required) orANDlogic (all matches required)
Command Type
Command Type ID: 1Parameters
matchMode Values
combineLogic Values
Usage Examples
Validate String is Present (include / or)
Validate All Required Strings Exist (include / and)
Validate No Error Strings are Present (exclude / or)
Validate None of Multiple Strings are Present (exclude / and)
Common Use Cases
- Response Guard: Ensure a success indicator is present in an HTTP or WebSocket response before processing
- Error Detection: Throw early if an error string is found in the data
- Completeness Check: Verify all required field names are present in the raw data
- Blocklist Check: Reject data that contains any forbidden string
Related Commands
- JSON Parse - Parse data before validating
- Http Request - Validate HTTP response content
- Filter - Filter data by field values after validation