hi. nuublet here.
`let x = “PerchanceListA”
[x]`
how do i have it retrieve PerchanceListA instead of a list named x?
I bet it’s something simple like some evaluateScript thing but i don’t know because I’m a noob :)
hi. nuublet here.
`let x = “PerchanceListA”
[x]`
how do i have it retrieve PerchanceListA instead of a list named x?
I bet it’s something simple like some evaluateScript thing but i don’t know because I’m a noob :)
It should retrieve the list directly with:
ty tho maybe i missexplained.
let xx = "Bright"; alert(root[xx])
in normal javascript, this would access root.Bright. (interesting about ‘root’. didnt kno that)
The above is what I’m trying to do. I have the word for the name of the list on a variable. Hao access list from variable?
I have the variable xx storing the string “Bright”. Hao maek alert say a list item from the list named “Bright”?
For example on the
/minimal
generator we have the list:then on the javascript:
Thank you! the root thing worked. turns out i had a capital letter where there shouldnt have been one and that’s why my list wasn’t being translated from the string correctly. silly and my fault and nothing about language. thanks for the help tho!