I found this searching the internet:
' BASIC256 used numbers to represent true and false
' values. Zero is false and anything else is true.
' The built in constants true and false exist
' and represent one and zero respectively.
This means that you can use 0 and 1 to represent true and false.
number0 = 0
a$ = prompt("What is the last number?", "enter new number")
if a$ = "q" then
if a$ = "0" then
number0 = 1
The new code is in bold. You can see how it is first added the variable to false, as 0.
After being evaluated if the last out is the number, with the code: if a $ = "0" then
, we proceed to mark it as true: we place number 1 in the variable.
This same procedure is done to check all the other numbers.