- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 10:40 AM
Hello,
I am looking for a way to get a variable record through it's string name. The reason I can't use current.variables.variableName is because the variable name varies depending on the value of another record and will be a result of concatenating 2 strings. So the name will be found out dynamically at run time, so what I am looking for is something like current.variables.getVariable('variableName '). Where the variable name is a string. Is there a way of doing this?
Solved! Go to Solution.
- Labels:
-
Studio

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 10:44 AM
You can try
current.variables[<var name>]
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 10:44 AM
You can try
current.variables[<var name>]
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 10:57 AM
Thanks a lot~

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2019 10:45 AM
I'm not sure you can do that but you could do something like this.
var variable = current.variables. + variableName;