Skip to content

Add a syntax to fetch a variable based on a string name #283

@bob2517

Description

@bob2517

Currently variables written directly in HTML looks like this: {$varname}. A need has arisen for there to be an additional syntax for fetching a variable based on a string name. An old programming term for that is "variable substitution".

Something like {${$varnameString}} and {${"varname"}}.

The inner parentheses, or whatever it ends up being, would be needed in case this was needed: {${$obj.varName}}.

This would then spill over into the syntax for if statements, etc., and look like ${$varnameString} and ${"varname"}.

It would also need to work like that in run command JS blocks and {= =} JS expressions.

Metadata

Metadata

Assignees

Labels

docs to doDocumentation still needs doing before this can get releasedenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions