Sequence please

Hey,

Iam looking for a simple way to compare incoming values and their order with a fix sequence of values. Like a password or like this:

So the Bang will be there when the code is right.(1->2->3: access, 1->3->2: access denied → reset input )

I think its simple but I dont get it. Maybe there is already a special Node…

regards

jakob

Have a look at AND (Spectral)

Yes interesting for the patch, but the order is importand. In AND(Spectral) or AND it doesn’t matter which order to have a BANG.
Need somthing like a Pin or a telephone number.

Could you show us the patch?

In the example shown, so long as you’re entering and keeping the values as you add them, the AND will be true; the Changed bangs.

With the Break you also get to tell if and when a code entry is wrong and no new inputs will let it bang.

2 Likes

Yo - next step

but the Input-Order is not yet clear to me

What you want is multiflipflop and a switch prolly, or accumulator and for loop (but it’s more tricky)

Yes I think so, but I think it is a standard code for all PinCodeDevices - so there is already a solution anywhere…

I am not sure if I have understood your task correctly, but here it is

Pincode.vl (14.5 KB)

1 Like

Erm, are you actually trying anything @golemprototype, because you haven’t demonstrate any engagement with the logic as a patch.

Yes. in my case I have a setup with an old dial-phone and an arduino.
It works so far that I can get the numbers out and when all numbers where sent I get a Bang. But the order of the numbers is arbitrarily.

So, I think @yar send the solution for my proplem. That is what I was looking for!
It will be one toy for an exitgame with students in June. Thanks

Another solution:
CheckSequence.vl (31.7 KB)

1 Like

Yes @gregsn works too for me, thanks to all for support!