an example can be found on AMOSPro_Examples:Examples/H-1/Help_11.AMOS
Selects between one of two actions, depending on a condition.
If conditions Then statements
More advanced IF instructions can be set up that choose between alternative actions, using AND, OR and ELSE. ENDIF is used to terminate this sort of structured test.
If test : Goto Label : Else Goto Label2 : End If