Make shape visible through button

Hey guys, I’m new to bubble and I need help. hopefully someone can give me a step-by-step instruction

Screen Shot 2020-12-26 at 08.04.19

These are the conditions that i have defined:

  1. Make all units’ default visibility state as invisible
  2. Unit 1 becomes visible when user input 1 and click on sell
  3. Unit 1 becomes invisible when user input 1 and click on unsell
  4. Unit 1 holds its visibility state when user input other number

the conditions repeat for unit 2, 3, …, 400 (I have 400 units). The only thing that user needs to change is the value of the input

Any idea how can i make this happen (least painful solution, hopefully I don’t have to create 400 variables, etc)? Do I use state or conditional?

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