mqscript_if
Generate conditional logic in MQScript to execute different code blocks based on specified conditions for mobile automation workflows.
Instructions
Create an If statement structure
Input Schema
Name | Required | Description | Default |
---|---|---|---|
condition | Yes | Condition to evaluate | |
elseBody | No | Code to execute if condition is false (optional) | |
thenBody | No | Code to execute if condition is true | // Then body |
Input Schema (JSON Schema)
{
"properties": {
"condition": {
"description": "Condition to evaluate",
"type": "string"
},
"elseBody": {
"default": "",
"description": "Code to execute if condition is false (optional)",
"type": "string"
},
"thenBody": {
"default": " // Then body",
"description": "Code to execute if condition is true",
"type": "string"
}
},
"required": [
"condition"
],
"type": "object"
}