Start a new topic

Boolean operations in Nextion?

I would like to do something like:


if ((bt0.val == 0) and (bt1.val == 0))

{

...

}


Is there any way to do that? Other than setting a variable with two IFs and testing it with a third IF?


1 person likes this idea
1 Comment

Hi!

va0.val=0
if(bt0.val == 0)
{
va0.val=1
}
if(bt1.val == 0)
{
va0.val=va0.val+1
}

if(va0.val==2)

{

.............

}

Login or Signup to post a comment