AE processes scripts line by line. As it is often required that the particular steps are processed depending on conditions, two control structures are available for handling the way how the script will be processed.
The :IF statement processes script lines only if the given condition applies.
:IF condition Script lines :ENDIF |
---|
The :WHILE statement repeats script lines as long as the condition applies.
:WHILE condition Script lines :ENDWHILE |
---|
Obtain further information in the documents describing these control structures.