*for me*) in the way IF + AND conditions work when including an integer variable. Watch the following proof of concept:

Code: Select all

```
#program IF_AND
10 REM "IF/AND" PoC
20 REM "vars" which exist just to test the checking
30 LET a=0: LET %b=0
40 REM simple counter
50 LET %c=0
60 REPEAT
70 REM Float var & INKEY check
80 IF a=0 AND INKEY$ =" " THEN PROC space()
90 REPEAT UNTIL %c=10
100 PRINT '
110 REPEAT
120 REM Integer var & IN check
130 IF %b=0 AND ( IN 32766&1=0) THEN PROC space()
140 REPEAT UNTIL %c=20
150 PRINT '
160 REPEAT
170 REM The following will not work, integer var & INKEY check
180 REM IF %b=0 AND ( INKEY$ =" ") THEN PROC space()
190 REPEAT UNTIL %c=30
200 STOP
210 DEFPROC space()
220 PRINT "Space! ";
230 LET %c=%c+1
240 PAUSE 8
250 ENDPROC
```

I suppose the rejection of INKEY$ means every condition joined by AND/OR

**has**to be an integer expression when you have an integer variable involved in one of them. Fortunately in this case, IN can be used for the same purpose but, is it supposed to always be this way? Is there a workaround? Any help is appreciated.