Macro Language Reference > Macros > Script - Instructions > }
  
}
Description
Instructs PTC ALD to jump forwards in a script by transferring control to the next occurrence of a label, effectively starting the search for the label_script from the current position in the script. Execution of the script then continues from the line that follows label_script.
 
Example 195. Simple use of jumps and labels in scripts
}skip
@skip this
:skip
@Hello
 
Example 196. Reset the value of variable arrays using loops, labels and jumps
This example illustrates the combined use of loops, labels and jumps in a small script that resets the values of a set of variable arrays:
^max_param=10
^param_array_incr=0
:set_param_vars
^param_array_incr++
?=^(^param_array_incr),^(^max_param) }exit_set_param_vars
^assd_com(^param_array_incr)=
^group_type(^param_array_incr)=
^param_nm(^param_array_incr)=
^param_typc(^param_array_incr)=
^param_descript(^param_array_incr)=
{set_param_vars
:exit_set_param_vars
Syntax
} name:b
name
The name of the target :label to which to jump.
Additional Information
Label and jump macros are only available within scripts executed with trun since they are recognized only by the script processor, not the normal macro processor.
Jump macros must appear on a line by themselves unless they are part of a condition.
Related Links