Then

Then is a keyword that can be used between the condition in the If statement and the next statement. It is completely optional: an instruction separator such as the colon or new line is also available.

Example

If I=1 Then J=2 Else J=3 : Endif
**can be replaced by:**
If I=1 : J=2 Else J=3 : Endif
**or**
If I=1
  J=2
Else J=3
Endif