Evaluate a string as a variable name?

I have a rule that I would clone for each user and then manually adjust user-specific variables, which is rather tedious. If I have a local variable that contains the user's name, then can I concatenate the user's name to more text and evaluate the final text as a variable? This way, I just need to update the local variable for the user's name. Or better yet, if the rule name has the user's name in it, have the rule extract the user's name from the name of the rule itself...

eg:
global variable:
%battery_max_john% = 80

local variable:
%name% = john
%newvar% = battery_max_%name%
(something)
%newvar% has value of 80

2 Likes

I'm interested in this as well. Or somewhat for the RM to have a Last Event Device related variable to remember something about the last device that triggered an event. Thx

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.