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 :)

  • wthit56@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 months ago

    That should work just fine. But I think you need to use $root to access it. Because JS and everything all use with(root) { ... }. Which means if you use just root you’re actually accessing root.root–which I’m guessing doesn’t exist. And that’s why you’re not getting any value.

    But $root always goes back to the root of the perchance main list object. So that might work for you.

    If it still doesn’t, you can give us the link to the generator and we can look at the code for you and figure out a solution.