"goto" is possible in GuiXT scripts and in InputScripts. Example:
Return "E: Company code &F[Company code] invalid" -statusline
Return "E: Please specify the company code" -statusline
Set V[ctext] "Toronto"
Set V[ctext] "Miami"
Set V[ctext] "Seattle"
can become difficult to understand when you use dynamic gotos. And when you use
field values as above, unexpected things can happen if the user enters values
that equal other labels in the script.
labels can be used in GuiXT scripts, but not in InputScripts. And even in
GuiXTscripts I would suggest you avoid them, since keeping track of the control
flow can get very complicated. For example, the following script
Set V[x] "L2"
"X" and not "End" .