← Back to Patterns

goto-static

Demonstrates static GOTO patterns (Step, Substep, NEXT, Named Substep)

navigation substeps

Source


# Static GOTO Patterns

## 1. Step Jump
- PASS: GOTO 3
- FAIL: STOP

Please confirm to jump to step 3.

```bash
rd echo "jump start"
```

## 2. Skipped Step
- PASS: CONTINUE
- FAIL: STOP

This step should be skipped.

```bash
rd echo --result fail
```

## 3. Jump Target
- PASS: COMPLETE

Target of step jump.

```bash
rd echo "jump landed"
```

## 4. Substep Jump

### 4.1 Start
- PASS: GOTO 4.3
- FAIL: STOP

Please confirm to jump to substep 4.3.

```bash
rd echo "substep start"
```

### 4.2 Skipped
- PASS: CONTINUE

```bash
rd echo --result fail
```

### 4.3 Target
- PASS: COMPLETE

```bash
rd echo "substep landed"
```

## 5. Named Substep Jump

### 5.1 Start
- PASS: GOTO 5.Cleanup
- FAIL: STOP

Please confirm to jump to the cleanup substep.

Jumps to a named substep in the same step.

```bash
rd echo "named start"
```

### 5.Cleanup
- PASS: COMPLETE

Target named substep.

```bash
rd echo "cleanup"
```

Try It

Jump from step 1 to step 3

Initializing...

Initializing...

Step/
ExpectedCOMPLETE
Env idle