Back

Command If
Parameters An expression to evaluate as true or false.

Command Else
Parameters None

Command EndIf
Parameters None

You can use either...

If Condition
   Things to do if condition is true
Else
   Things to do if condition is false
EndIf

or just...

If Condition
   Things to do if condition is true
EndIf

Spartan recognizes the following comparator symbols...

= Equals
<> Not Equals
< Less Than
> Greater Than
<= Less Than or Equal To
>= Greater Than or Equal To
And Both sides true
Or Either side true
Xor Either side but not both true
Eqv Both sides true or both sides false

Examples:

if Counter1 = 6
If LastCopy = "Skip It"
If ThisPaste = "Fred"
If Text1 = "A" And Text2 = "B"
If Counter1 = Counter2 Or Text1 = "A"

 

Back