IF..ELSE
When checking for a condition, you can also specify what to do if the condition is not met. This is done with the else keyword.
An if statement with else has the following syntax:
if <condition>then// code to run if condition is trueelse// code to run if condition is falseendNote that you can’t use else without then, and the else block must follow the then block.
Example:
if is_key_pressed 113 // F2then print_help 'HELP_F2' // show message if F2 is pressedelse terminate_this_script // otherwise terminate the scriptend