Jump


Makes a scenario do a jump (automatic branching).
Utage scenarios are basically written in the scenario sheet, and they are executed in order from the top. However, you can use the Jump command to make the execution continue on in a different place.
In addition, you can also set conditions for making the jump, allowing you to implement automatic branching of scenarios.

Sample

Reference

Command Description Arg1 Arg2 Arg3 Arg4 Arg5 Arg6
Jump Jumps to the specified scenario label Scenario label to jump to Conditional expression for triggering the jump.
If false, it does not jump.

Conditional Expression for Triggering the Jump

In Arg2, you enter the conditional expression for triggering the jump. It needs to be a logical expression (that returns a bool type).
As it is a logical expression that returns a bool value directly, you can have the following:

Command Arg1 Arg2
Jump *Jump destination 1 flag1

This is the easiest way to check a flag.

Sample of Slightly More Complex Automatic Branching

The commands are executed in order from the top, so by writing consecutive Jump commands with conditions, you can also implement slightly more complex conditional branching.

Command Arg1 Arg2
Jump *Jump destination 1 flag1
Jump *Jump destination 2 point>=10
Jump *Jump destination 3

In this example, if flag1 is true, the execution branches to “Jump destination 1″, if point is 10 or higher, it branches to “Jump destination 2″, and otherwise it branches to “*Jump destination 3”.