Transfer script execution to the specified script line.
Note line numbers start at 0.
void goto <int:line>
Name | Type | Comment |
---|---|---|
line | int | The zero-based line number to which execution should be transferred. |
None (void).
goto 3 // jump to line #3 echo "1" echo "2" echo "3" // goto should jump to this line echo "4"
… the output of which is written to the event log by echo as:
3 4