We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Local Variables in Puzzles

Home Forums Puzzles Local Variables in Puzzles

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #61516
    Thomas Fabini
    Customer

    Hi,

    is there a possibility of keeping variables in puzzles local, basically having a scope inside a procedure, a loop or is any variable at any time defined globally?

    It’s not something crucial, but I guess it’s less tedious keeping track of relevant variables while not having to look them up in the list between each parameter passed to a function / procedure or local variables used in a loop.

    Is there maybe a better way to go about this, besides giving each variable a unique and specific name?

    Thanks,
    Thomas

    #61525

    Hi Thomas,

    Unfortunately both Puzzles and Blockly do not support local vars at the moment. :unsure:

    Chief 3D Verger | LinkedIn | Twitter

    #61527
    Thomas Fabini
    Customer

    Hi Yuri,

    thanks for your fast reply. Since you mentioned Blockly – it appears there are users debating about local variables, or some plugin for local vars… Maybe it’s a feature that will make its appearance in time with Blockly evolving.

    Until then I guess it’s all about variable and procedure naming discipline in Puzzles… :wacko:

    Thanks,
    Thomas

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.