Assign values to array elements

Hi guys,
How to assign an int to an array element ?

I’ve got an array of scripts, I’d like to make each one of these scripts match an int (see principle image below)

hi,
I’m not sure what this is for… but you could create a second array - one of int - and stored your 4 an 7 there… then if you want to look for 7 you will find it is the second item of your int array and you can use that position to get the script in the other array.
hope that helps,