Hi, I`ve got a simple problem I can`t solve. Maybe someone can help me.
There is a part of code:
begin:
pause 100
IF timer = 1 AND relay = 1 THEN
pause 500
timer = 0 'turn off timer'
PAUSE 1000
portb.1 = 0
timer = 1 'turn on timer'
IF timer = 1 AND relay = 1 THEN
pause 500
timer = 0 'turn off timer'
pause 1000
portb.1 = 1
pause 1000
timer = 1 'turn on timer'
ENDIF
ENDIF
.
.
.
The problem is with second IF....THEN...., whole cycle goes without examining the second IF ...AND...THEN. But I need following:
When first IF...AND ....THEN "show", go to commands after THEN. After that, examine second(the same as first) IF...AND...THEN and go to commands after its THEN. How can I fix this to do what I want?
Thanks in advance.
Bookmarks