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"