Can someone please tell me how i can set these buutons to be true or false?
Clarification: I need these If...Then statements to see if the button is pressed then... or vise-versa
Not "0 or 1" but "0 or NOT 0".
You should write
IF(BT AND 16)!=0 THEN
in case of @BUTTONTRUE.
16 stands for A button btw.
(You can replace this 16 with #A.)
There are some methods as follows.
Ex. 1
IF(BT AND #A)!=0 THEN GOSUB @BUTTONTRUE ELSE GOSUB @BUTTONFALSE
Ex. 2
F=((BT AND #A)!=0)
GOSUB "@BUTTON"+"TRUE"*F+"FALSE"*!F
b0-b12 is 13-digit binary number.
I've made a sample program to explain binary number to you.
Could you download N3F5DXN3 and run EX_BIN2DEC in the downloaded folder?