An unless statement consists of a Boolean expression followed by one or more statements.
The syntax format is as follows:
unless(boolean_expression){ # execute when boolean_expression is false}
If the Boolean expression boolean_expression is false, the code block within the if statement will be executed. If the Boolean expression is true, the first set of code after the end of the if statement (after the closing bracket) will be executed.
Executing the above program, the output result is:
The value of a greater than or equal to 20a is: 20 The value of a if a is falsea is: