Check out another great article from Nonki:
Small Basic: Control Statements
Here's an excerpt from it:
If statement or If clause is for making conditional branch. If you'd like to show "AM" or "PM" by checking clock, following code and chart are for that. There is another keyword "ElseIf" for this clause. For detail about "ElseIf", see the next section.
' Get hour
' hour < 12?
' Yes: Write "AM"
' No: Write "PM"
And check out the full article here:
- Ninja Ed