PDA

View Full Version : If ... THEN @ NOP



Acetronics2
- 11th April 2021, 15:25
Could someone explain ...



IF ACLine == 0 THEN
@ NOP ' read Line input
ENDIF


THIS works ...


IF ACLine == 0 THEN @ NOP ' read Line input


THIS Generates an error ...

Alain

pedja089
- 11th April 2021, 15:40
@ symbol is for replacing ASM ENDASM. It should be first charter on that line, so it will indicate that line is ASM.

So try to write If ... THEN ASM NOP ENDASM

Acetronics2
- 11th April 2021, 18:56
Hi, Pedja

doesn't work Either ... ;)



C:\USERS\ACETR\DOCUMENTS\PROJETS_MCHIP\THERPICPOUL _TR.BAS ERROR Line 257: Bad expression.
C:\USERS\ACETR\DOCUMENTS\PROJETS_MCHIP\THERPICPOUL _TR.BAS ERROR Line 257: Bad expression or missing THEN.
C:\USERS\ACETR\DOCUMENTS\PROJETS_MCHIP\THERPICPOUL _TR.BAS ERROR Line 257: IF without a matching ENDIF.257: Syntax error
257: Syntax error

pedja089
- 11th April 2021, 19:56
I expected that...
Then you must press enter two more times :)