Conditionals
The following conditionals are supported in T:
if
statements
If statements
If statements are like those you have seen in any other language, they
are composed of atleast one if
branch:
You can add alternative conditions using the else if
keyword:
In the case the conditions are not true for any of the if
or else if
branches then “default” code can be run in the else
branch as such: