Macro Language Reference > Macros > Script - Instructions > :
  
:
Description
Sets the target for jumps in a script that have been defined via the jumpb_script and jumpf_script macros.
 
Example 197. Simple use of jumps and labels in scripts
}skip
@skip this
:skip
@Hello
 
Example 198. 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
: label:b
label
The name of the label with corresponding jump name: any alpha numeric combination of unlimited length (pre v7.51a the string is limited to 31 characters) preceded by a :.
Additional Information
Label and jump macros are only available within scripts executed with trun since they are recognised only by the script processor, not the normal macro processor.
A label must always appear on a line by itself.
Related Links