Since there are no boolean variables in GCB, I think the best way to simulate them would be the use of a byte variable. But :
1 ) Is it correct to assign the value "True" or "False" to such variables (it compiles ... ) ? Or should I rather use 1 and 0 instead ?
2) And how should the test look like ? In former Basic versions (Commodore ... ) an integer variable was considered as True if non equal to 0. So, should I use "If (Test)" or "If (Test = True)" or rather "If (Test <> 0)"
Thanks for any answer ...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Since there are no boolean variables in GCB, I think the best way to simulate them would be the use of a byte variable. But :
1 ) Is it correct to assign the value "True" or "False" to such variables (it compiles ... ) ? Or should I rather use 1 and 0 instead ?
2) And how should the test look like ? In former Basic versions (Commodore ... ) an integer variable was considered as True if non equal to 0. So, should I use "If (Test)" or "If (Test = True)" or rather "If (Test <> 0)"
Thanks for any answer ...
http://gcbasic.sourceforge.net/help/_conditions.html and http://gcbasic.sourceforge.net/help/_constants.html
(Test <> false ) is my recommendation.