IF-THEN-ELSE is used to check certain condition. If the condition is true the code in the block is executed but if the condition is false the code in else block is executed.
It simply means that whether the condition is true or false, certain code will be executed.