So I want to concat the string “off_state” with the value of button_id (let’s say it’s 0), so I then have “off_state0” which I then need to get the value of in a condition in the action block like:
You could not find an example because no part of that will work.
1: Variables do not exist until after the trigger. They are not rendered at all.
2: I do not get nor is it a valid construct to have a variable key under a state trigger.
So just do your trigger, then after the trigger you can create variables or a condition section or an action section.
@Sir_Goodenough , @rwalker is trying to use it in a condition within the action block… so in a choose or if. that should be ok… I’m guessing you thought he meant the condition block of the overall automation
@rwalker you can use variables to build more variables as long as they are properly scoped.
please post the full automation that you wish to work… not clips, but the whole thing so that we can make sure the variables are visible and properly scoped