Start a new topic

If Clauses How can i use and , or operators ?

Hi, 

I am working on Nextiob 7inch tft. I was try to use if clauses like,


if(b0.val>0 && b0.val<9)

{

  page page1

}


and this if doesn't work. It is basic c code. How can this code work ? 

Thanks. 

1 Comment

It can not work.


Nextion is not a C compiler, Basic C or otherwise.

Nextion has an instruction Set

 - best to think of the instructions as short cuts

 - but just like programming, their order can create amazing effects.


But didn't you even bother to read the Nextion Instruction Set?

 - you would have surely seen why it doesn't work if you had.

Login or Signup to post a comment