| 12345678910111213141516171819202122232425262728293031 |
- {
- "version": "3.15",
- "name": "Test11: Expression & Calculation",
- "registry": {
- "params": ["a(INT)", "b(INT)"],
- "vars": ["$sum(INT)", "$product(INT)", "$comparison(STRING)", "$combined(STRING)"]
- },
- "steps": [
- { "id": "Set_Sum", "target": "$sum", "value": "=a + b", "next": "Set_Product" },
- { "id": "Set_Product", "target": "$product", "value": "=a * b", "next": "Branch_Compare" },
- {
- "id": "Branch_Compare",
- "cases": [
- ["=a > b", "Set_AGreater"],
- ["=a == b", "Set_Equal"],
- ["ELSE", "Set_BGreater"]
- ],
- "next": "Set_Combined"
- },
- { "id": "Set_AGreater", "target": "$comparison", "value": "\"a > b\"", "next": "RETURN" },
- { "id": "Set_Equal", "target": "$comparison", "value": "\"a == b\"", "next": "RETURN" },
- { "id": "Set_BGreater", "target": "$comparison", "value": "\"a < b\"", "next": "RETURN" },
- {
- "id": "Set_Combined",
- "target": "$combined",
- "value": "=\"sum=\" + $sum + \", product=\" + $product + \", comp=\" + $comparison",
- "next": "Stop_End"
- },
- { "id": "Stop_End" }
- ]
- }
|