EasyManua.ls Logo

Moog SmartMotor - Page 422

Moog SmartMotor
909 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Part 2: Commands
Moog Animatics SmartMotor Developer's Guide,Rev. L
Page 422 of 909
EXAMPLE:
a=1 'PRINT("FALSE") is always executed
IF a==2
PRINT("TRUE")
ELSE
PRINT("FALSE")
ENDIF
EXAMPLE:
IF a==1 'Only if a is NOT 1, 2, or 3
'will GOSUB5 be executed.
GOSUB2
ELSEIF a==2
GOSUB3
ELSEIF a==3
GOSUB4
ELSE
GOSUB5
ENDIF
C2 'Some subroutine code here
C3 'Some subroutine code here
C4 'Some subroutine code here
C5 'Some subroutine code here
RELATED COMMANDS:
ELSEIF formula IF-Structure Command Flow Element (see page 423)
ENDIF End IF Statement (see page 433)
IF formula Conditional Program Code Execution (see page 475)
Part 2: Commands: ELSE

Table of Contents

Related product manuals