Controlling Program Flow in the Script Element

A scripting language is not complete without statements controlling the flow of execution. To this end, the Script element provides a number of statements for controlling programming flow, including if-else statements that support branching of statement execution, and various looping statements to support item-by-item array A collection of variables that share common output attributes and can be manipulated in GoldSim elements or input expressions. assignment and iterative calculations.

These are discussed in the topics below.