Automation Editor
...
Building Automations
Tips and Tricks
Emit first non-empty value
1min
consider this diagram, where lots of conditions are evaluated then consider if after all of that you need to map a value that may come from more than one of those conditional branches, where depending on which branch is executed there is a priority order where you want to grab the first non empty value there is a easy way to do that with the "emit first non empty value" action in the transform text app map in a list of values from the preceding actions the first non empty value in the list will be emitted when the action runs you can also define a default value to emit if all mapped values are empty