Skip to content

End Case ​

Purpose: end the current case, skipping its remaining steps, and go on to the next case.

End Case settings

End Case has no other fields.

JSON ​

json
{ "end_case": true }

Result ​

End Case itself is PASS, and the steps after it show SKIP (not visited). The case result is decided by the steps that did run.

Example ​

When 0x0800 is 0, a Log says there is nothing more to check and End Case follows, so the last Log does not run. The second case runs as usual.

End Case example result

Notes ​

  • End Case usually sits inside an If, so the case only ends early when the condition holds.
  • End Case cannot be used in a subroutine; use Return to leave a subroutine.
  • How it differs from End Round is explained in Concepts › 2. How a run works.

Download the sample script ​

Sample script

Before running it, start a Slave window on 127.0.0.1:502 and click Listen, then open the script with Open JSON in Script mode and click Run. See How to use the examples.

Roach Modbus Tool by Mr.Roach