Search found 1 match

by jgodfrey
Tue Jul 18, 2023 10:24 pm
Forum: Request Help
Topic: Using strings as to reference variables
Replies: 11
Views: 5506

Re: Using strings as to reference variables

Depending on the details, you might also find a Dictionary to be useful. For example:

Code: Select all

var myVars = {"string1": "John Doe", "string2": 101}
Then, you could reference one of the above items using something like:

Code: Select all

myVars.string1

...or...

myVars["string1"]