🎛️Conditional Statement
Currently, we only support If Condition
Conditional Statements: If Condition
Syntax:
Tiger <condition>Explanation: The Tiger conditional statement in Animal-Script is used to implement an if condition, allowing you to execute a block of code based on a specified condition. The syntax consists of two components:
Tiger: This keyword initiates the if condition statement.<condition>: This is the condition that is evaluated. It can be any valid expression that results in a boolean value (TrueorFalse).
Example:
Tiger i < 10In this example, the if condition will be evaluated to check if the variable i is less than 10. If the condition is True, the block of code following the Tiger statement will be executed. Otherwise, it will be skipped.
Last updated