IF COMMANDS
In a command block the first part of the full script is the IF command.
For a full script, the IF command (or IF commands, as multiple can be placed in a full script) must succeed for the script to continue.


"if(command, arguments....)"


Unlike THEN/ELSE commands, when multiple IF commands need to succeed, they do not need to be contained in the same { } block.

When it comes to both IF and THEN/ELSE commands, the parameters change based on the command.



A full list of the available IF commands are as follows...

Click the links to find out how each command works, and the arguments.