Page 1 of 1

Double condition (if x=1 and y=1 then z=1)

Posted: 15 Oct 2017 22:19
by thopa
Hi!

I think the tittle says it all.

I had solved this problem before but cannot find the template i was using it on.

So basically i want a script or action to get executed only when two other conditions or rules are true.

Help!

Re: Double condition (if x=1 and y=1 then z=1)

Posted: 03 Nov 2017 16:55
by Westbam
I know it is late, but for the others (and this is in the manual!)

Code: Select all

if (x==1 && y==1){
 z = 1;
}
You need to declare X, Y and Z somewhere.

Note the == for comparing. && means and, || means or.

Re: Double condition (if x=1 and y=1 then z=1)

Posted: 05 Nov 2017 21:35
by thopa
Hi! Thanks a lot!
This is in the manual? I get confused with what manual to use!
Anyway this is great info, i can go back to implementing double button presses and combos, had to do it with sone old bomes template!
Much apreciated!