When I try to access a property of a stored variable, it says that “it does not exist.” Why does this happen?

  • BluePower@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    6 days ago

    You can’t assign variables in the middle of a list, instead you would move this part to the output assignment so it would actually create the variable that could be evaluated by the ..., r = recipies.selectOne, r.name] instance:

    [f=createInstance(ingredients.flour.selectOne), createInstance(b=ingredients.flour.selectOne)]
    

    Like this:

    Why does this happen?

    Perchance recognizes and evaluates the f variable assignment block I’ve mentioned before as the child of the list pie which is a child of the list recipies, making it unusable when called it directly within the variable’s name. To fix this you’d need to execute that assignment before the recipies list is evaluated (as I’ve said before).