Unpack message with variable length
Hi,
I want to unpack a message with a length between 1 and 16 integers.
Every time I change the number to X, a X amount of random values between 1 and 16 are generated.
How can I unpack the last message when the length is changing?
In the end I want to check if a numbers is in the message and turn a toggle on/off when it is the case.
Maybe I have to use something else than unpack...
Thanks! :)
Sjoerd
I think, you may be interested in and to build your construction on top on the [iter] object. Another solution may be made from the [zl.length] (to check current length of the list) and [zl.slice] (to split it).
spray ?
zzz
I am not shure if you whant it like this. I turns the toggles on when the number is in list
Thanks for the answers! :)
It was exactly what I was looking for, thanks @DOUBLE_UG