state machine

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

state machine

koal
This post has NOT been accepted by the mailing list yet.
to solve a problem I did the need to create a function that is a kind of state machine with 2 states (eg true or false)should be able to initialize and change the states
must have "memory" and be called by other functions, to know the state
any help?

the transactions between states would be:

current input new state
false false false
false true true
true false true
true true true

thank you very much!
a greeting