#How to use variable and modes for carousel selection?
1 messages · Page 1 of 1 (latest)
basically I want to turn on the white frame of any selected card, and turn off the white frame of any cards that are not selected
Oh okay, so first thing i notice is that you are trying to do it on the component variant itself. But I think for prototyping you need to use their instances
oooh i forgot about that!
So after playing around wiht it for a bit, i think the reason it is not working is because the prev and next buttons are in mod 1
so they are only updating things in mod 1
Hey @solemn prism So i kinda made it work but its not that pretty tbh
I couldnt think of another way to do this then having a bunch of selected booleans, because it needs to keep track of each of them. If we could add expressions to boolean variables themselves, that would be nice though (if we could do something like show the layer if the currentCard == card number, but that is not yet possible i think)
In the way you wanted to do it, it doesnt really work because the prev and next buttons can only keep track of their own mode (which is 1, but cant keep track of the other 3 modes)
The mode thing in this case would be more applicable if you want different scenarios, where maybe in one use case you want your prototype to start from card 3 and not from card 1, and then in that case changing the mode of the whole frame / prototype (including the buttons)
Thank you so much! Can you share the access you linked?
OH yess! sorry, i keep forgeetting this part hahha
also do you mind allowing me to edit so that I can see how the protptype is wired?
done!
Thank ya!
sorry one more question - how can i use AND in conditional (e.g. when a == true AND b == true)?
Thanks!!!!