TRUE
TRUE
Boolean TRUE.
Example 1: Assign TRUE to a variable
true
a = false
b =
print a ' Output: 1
print b ' Output: 0
Example 2: Use in a while loop
true
IsRunning =
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
true ' replace true with false
ButtonPressed = if(ButtonPressed) then print "Button was pressed"
Code samples using TRUE
003 conditional branching.bas
006 arrays+.bas
100lines.bas
2048.bas
2048.bas
agendus.bas
bairstow.bas
blackbox.bas
Blackbox.bas
bopit.bas
calc.bas
checkers.bas
checkers.bas
chess.bas
chess.bas
conrec-sb-v01.bas
falling blocks - tetris.bas
gobble.bas
guessit.bas
hanoi.bas
illuminati.bas
image demo.bas
index.bas
leastq.bas
matches.bas
matches.bas
maze generator.bas
memoryTest.bas
memorytest.bas
Language
AND
AS
BAND
BG
BOR
BYREF
CALL
CASE
CATCH
CONST
DECLARE
DEF
DO
ELIF
ELSE
ELSEIF
END
END TRY
ENDIF
EQV
EXIT
FALSE
FI
FOR
FUNC
GOSUB
GOTO
IF
IFF
IMP
IN
LABEL
LET
LIKE
LOCAL
LSHIFT
MDL
MOD
NAND
NEXT
NOR
NOT
ON
OR
REM
REPEAT
RETURN
RSHIFT
SELECT
STEP
STOP
SUB
THEN
THROW
TO
TRUE
TRY
UNTIL
USE
USG
USING
WEND
WHILE
XNOR
XOR
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.