Skip to content

Checking if all referenced variables exist? #265

Open
@kinsi55

Description

@kinsi55

If I have a case where the expression is always evaluated against an object containing a specific list of variables, what would be the intended way to sanitize the passed expression? I assumed I could use variables() in one way or another, however that will also return variables which are defined in the expression itself.

I have a hacky solution now where I recursively iterate over the tokens and account for every IVARNAME this way but surely there has to be a better way for this right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions