{
  "version": "3.15",
  "name": "Test02: Set + Branch + Conditional Logic",
  "registry": {
    "params": ["score(INT)"],
    "vars": ["$level(STRING)", "$result(STRING)"]
  },
  "steps": [
    {
      "id": "Branch_ScoreLevel",
      "cases": [
        ["=score >= 90", "Set_Excellent"],
        ["=score >= 60", "Set_Pass"],
        ["ELSE", "Set_Fail"]
      ],
      "next": "Set_Summary"
    },
    { "id": "Set_Excellent", "target": "$level", "value": "\"excellent\"", "next": "RETURN" },
    { "id": "Set_Pass",      "target": "$level", "value": "\"pass\"",      "next": "RETURN" },
    { "id": "Set_Fail",      "target": "$level", "value": "\"fail\"",      "next": "RETURN" },
    {
      "id": "Set_Summary",
      "target": "$result",
      "value": "=\"Score: \" + score + \", Level: \" + $level",
      "next": "Stop_End"
    },
    { "id": "Stop_End" }
  ]
}
