wait and watch
-
How to make a setup for watching a condition to happen in the future?
Condition1 met----> watch for something to happen so long this criteria (condition1) is met ???
-
while looking for Condition2, Condition1 must be true? .. easily connect Condition1 with Condition2
or
while looking for Condition2, Condition1 can be false? .. for this situation you can use Flag, Set flag and Check flag ... with Set flag you set some state, like:
Condition1 is true --- Set flag 1
now with Check flag look if flag == 1, when true, look Condition2 ...
when Condition2 is true, do something and Set flag back to 0
this is example for second situation:
