Setting the Value of an Indexed Array when Element is Clicked

So I have an indexed array variable called show_help. It is an indexed array of booleans.

I can display a value with key 1020 with the syntax:
{{show_help.value.1020}}

When clicking on an element in my design I want to be able to:

  1. Set the value - I have tried show_help.value.1020.setValue(1) but this doesn’t work. What syntax should I be using?

  2. Toggle the value - What syntax would I use for that?

Thanks! :slight_smile:
Antony.

Community Page
Last updated: