#How to use variable and modes for carousel selection?

1 messages · Page 1 of 1 (latest)

calm notch
#

Hey @solemn prism! is it possible to look at your file? This is not a 100% clear to me on what you ware trying to do

#

I also don't see your CurrentCard or Selecte: Card 0 variablesd

solemn prism
#

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

calm notch
#

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

solemn prism
#

oooh i forgot about that!

calm notch
#

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

calm notch
#

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)

solemn prism
#

Thank you so much! Can you share the access you linked?

calm notch
solemn prism
#

also do you mind allowing me to edit so that I can see how the protptype is wired?

solemn prism
#

Thank ya!

solemn prism
#

sorry one more question - how can i use AND in conditional (e.g. when a == true AND b == true)?

calm notch
solemn prism
#

Thanks!!!!