Hi,
Say I have the following:
Dictionary prices = {'s': 30, 'm': 35, 'l': 38 ...}
Then during execution I do set variable
String userSelection = 's'
Next I am trying to set variable
userPrice = {lv=prices[{lv=userSelection}]}
The UI doesnt even let me validate this expression.
When I do
userPrice = {lv=prices}
Then this is an acceptable expression.
How can I get a dictionary value from a variable key?
Say I have the following:
Dictionary prices = {'s': 30, 'm': 35, 'l': 38 ...}
Then during execution I do set variable
String userSelection = 's'
Next I am trying to set variable
userPrice = {lv=prices[{lv=userSelection}]}
The UI doesnt even let me validate this expression.
When I do
userPrice = {lv=prices}
Then this is an acceptable expression.
How can I get a dictionary value from a variable key?