Mity Eltu
Member
I am trying to write basic code that looks like this:
If PORTB.0 Or flags.1 Then
While PORTB.0 or flags.1
Wend
Endif
This is, in fact part of the code I'm trying to compile using pic18 simulator basic compiler. This code fails to compile and gives me the following error:
"Error in line 52: Invalid test expression". Line 52 is the If statement. How do I code this so I can have either portb.0 or flags.1 set to 1 and the code within the IF statement run? I've tried multiple different methods, but nothing has worked. I can't find an example that uses this sort of conditional statement. Can anyone help?
If PORTB.0 Or flags.1 Then
While PORTB.0 or flags.1
Wend
Endif
This is, in fact part of the code I'm trying to compile using pic18 simulator basic compiler. This code fails to compile and gives me the following error:
"Error in line 52: Invalid test expression". Line 52 is the If statement. How do I code this so I can have either portb.0 or flags.1 set to 1 and the code within the IF statement run? I've tried multiple different methods, but nothing has worked. I can't find an example that uses this sort of conditional statement. Can anyone help?