Do something if condition in reaction is not accomplished?

1.56K viewsCSS Community ScriptsReactions
0

Hello,

maybe I’m overlooking something simple, but for now I don’t see a solution how to solve this…

In reactions there are what we listen. Next, if “condition” is accomplish then we do something. But I do not see how to add something to do if condition is not accomplished?

For example:

We listen: Button1 is pressed.

Condition 1: if “parameter X” is 0 then we do:
xxxx
xxxx
127 —> “parameter X”
xxxx

and if i put in “next bolck” condition (in same reaction):
Condition 2: If “parameter X” is 127 then we do:
xxxx
xxx
xxxx

this parameter is alredy changed in codiotion before and bought conditions will be exercuted with same reaction.
I try to sepateate these conditipns in two reactions, and get the same results.

pedjableton Answered question
0

More precisely what I’m trying to do.

Once the button is pressed turn on LED for this button and do something…

Then when this button is pressed again turn off LED for this button and do something else…

pedjableton Edited answer
You are viewing 1 out of 3 answers, click here to view all answers.