Bug? Can't use {iterator_value} when configuring If condition

Andydroid

Member
When I'm using the Iterate Array action, and configuring an If condition within it, {iterator_value} isn't allowed in Expression comparisons- is this a bug? I've tried both square and curly brackets.

Instead I have to assign {iterator_value} to a local variable and use that in the comparison
Screenshot_20230314-162850_MacroDroid.jpg
 

Endercraft

Moderator (& bug finder :D)
When I'm using the Iterate Array action, and configuring an If condition within it, {iterator_value} isn't allowed in Expression comparisons- is this a bug? I've tried both square and curly brackets.

Instead I have to assign {iterator_value} to a local variable and use that in the comparison
View attachment 4880
It's normal, it's because the expression is evaluated directly. In this case the [iterator_value] = -1 and your dictionary/array may be empty. Update to a new version, it lets you use any expression
 
Top