Skip to main content
Question

Using conditional prototyping to affect multiple switches


Advait_Tinaikar

Hi all,
I’ve created a design with 4 switches and a master toggle on/off. If the user taps the master toggle, all the 4 switches should toggle between on and off.
I’m trying to use conditionals, variables and modes. But somehow it’s not working. Below is a screenshot of the prototyping panel. (I can’t seem to attach anymore screenshots)

Here’s what I did:

  1. Created boolean variable “switch”
  2. Created 4 modes corresponding to the 4 switches: Opt A, Opt B, Opt C, Opt D
  3. Assigned each of the 4 switch layers to the corresponding variable and modes
  4. Tried to create a conditional where if I click on the “All Off” button all the switches turn off.
    However when creating the conditional I’m not able to assign a mode to the variable under the “if” statement.
This topic has been closed for replies.

Alex184
  • New Participant
  • July 18, 2023

  • July 29, 2023

This topic was automatically closed after 30 days. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings