A couple of items.
1: Arrays
Arrays are a way of having a set of related variables of the same type kept together.
A quick example would be if you wanted to store the names of 10 people, instead of declaring 10 different variables you can declare one variable and then reference them by an index.
To declare an array parameter in DashBoard when you open the 'Add/Edit Parameters' window in edit mode in the 'Type' dropdown you would pick one of the types that end with Array, examples: 'Integer Array (32-bit)' or 'String Array'.
This link is a good overview of Javascript and arrays:
https://www.w3schools.com/js/js_arrays.asp
Now....
#2: It *looks* like you are trying to select one item from a set of 10 possibilities.
I.e. if you want one button selected and the other 9 to not be selected.
If that is the case, then instead of declaring 10 variables and using them as booleans do the following instead:
2a; Create an integer parameter in the 'Add/Edit parameter' window from edit mode.
-Type: Make it an integer (16 or 32 bit)
-Constraint: Choose 'Choice Constraint)
-In the Constraint Value section there is a small table of two columns.
You will fill out 10 rows, one for each choice,
Under the 'Value' column, just use numbers from 1 to 10.
Under the 'Name' column, use whatever name you would want to appear on the buttons for that selection.
-For 'Widget Hint' you will want to select 'Toggle Buttons'
-In the Initial Value, put whichever number you want to be the default value, something from 1 to 10.
2b; You can now put that parameter on your custom panel.
You will notice that it draws a row of toggle buttons for you, so you will want to make it as wide as you can to show all 10 buttons.
*note: For toggle button(s) in edit mode for that element under 'Style' you now have a 'Toggle On' and 'Toggle Off' tab, this is so you can change the style of the selected button from the unselected buttons easily without having to write any script at all.
So, to get the behaviour I'm*guessing* you want you don't have to write a single line of script, just declare your parameter as I showed above and put it on your panel.
If I've guessed wrong as to what you are looking at doing, let me know.
#DashBoard