else keyword in Julia
Keywords in Julia are reserved words that have a specific meaning and operation to the compiler. These keywords can not be used as a variable name, doing the same will stop the execution process and an error will be raised.
‘else’ keyword in Julia is used to execute a block of code when the ‘if’ condition is false. If the condition is true, the code after the if statement will be executed otherwise the body of else statement will be executed.
if condition statement else statement end
5 is smaller than 10 This is not in if
'else' keyword can also be used with
'if' keyword to generate an ‘if-elseif-else’ ladder.
Value of i is 20