TRUE

TRUE

Boolean TRUE.

Example 1: Assign TRUE to a variable

a = true
b = false

print a  ' Output: 1
print b  ' Output: 0

Example 2: Use in a while loop

IsRunning = true

while(IsRunning)
    i++
    print i    
    if(i == 5) then IsRunning = false
wend

' Output: 1 2 3 4 5

Example 3: Use in a if statement

ButtonPressed = true   ' replace true with false
if(ButtonPressed) then print "Button was pressed"
Language
If there is insufficient information on this page and you wish learn more about TRUE, please send an email to smallbasic@gmail.com. You can help to improve information about TRUE by submitting a pull request, click View Source for details. Note, an offline language reference text file is also available - see the Download section.