The if command takes two parameters:
The first parameter is a boolean, which will be evaluated as either true or false.
The second parameter is a command, basically anything the mod allows if there are no other commands entered.
If the first parameter is evaluated to true, then it will perform the command of the second parameter.
If the first parameter evaluates to false instead, then nothing will happen.
You can play around with the drop-downs to see what is possible.