Makes a decision regarding program flow based on the result returned by an expression.
If the result of <expression> is nonzero (logical true), the Then statement(s) is executed.
If the result of expression is zero (false), the Then statement(s) is ignored and the Else statement(s), if present, is executed.
Elif statement, as its name suggests, is a combination of If and Else.
Like Else, it extends an If statement to execute a different statement in case the original If expression evaluates to False. However, unlike Else, it will execute that alternative expression only if the Elif conditional expression evaluates to True.
Otherwise, execution continues with the next executable statement.
If t%=1 Then
Elif t%=2 Then
Elif t%=3 Then
Elif t%=4 Then
TextOut x1%,y1%, "nuBASIC",c%
If k$="q" Then End