Structure of a command file

Structure

The structure of a command file (*.py) is presented in the example below.

Part Description
1 Header of an executable Flux program
2 One or more commands in a programming language

(1) Program header

The Flux program header is compulsory. It specifies which Flux program (2D and/or 3D) will execute the command file and its version*.

* The indicated version can correspond to the current software version or be of a previous version.

(2) Sequence of commands

The sequence of commands can comprise four types of principal instructions: assignment, loops, conditional statements, and statements without condition.

Note: A command file can contain the instructions to open another command file and so on up to 15 levels.