Trivial math
alnajjar1
Posts: 110
I have been coding for the BS2 for years but got stumped when I needed a (not equal) operator. I looked in the manual but couldn't find anything. I used <> but it didn't work. Surely that is doable! any help???
Al
Al
Comments
Page 232 Basic Manual 2.2
That may be a problem but I did not try that.
This works for me
Result VAR Word
Test VAR Word
test = 1
DEBUG ? Test
DEBUG ? result
IF result <> test THEN
DEBUG "<> ",CR
DEBUG ? Result
DEBUG ? Test
ELSE
DEBUG "= ",CR
DEBUG ? Result
DEBUG ? Test
ENDIF