What's the purpose of the Variable option in If condition?

Andydroid

Member
When configuring an If condition there's an option to specify a comparison with a Variable, yet all the variables are available from the Expression magic text, so I'm just wondering why's there this extra option?
Screenshot_20230314_161827.jpg
 

MacroDroidDev

Administrator
Staff member
I don't remember the history but I suspect I initially just had the variables and then someone wanted to compare against some other magic text value so I added that later. Given that 1000s of users probably already had the variable setup the old way, it's much safer to leave well alone than try to migrate to the expression.
 

Dm114

Well-known member
I don't remember the history but I suspect I initially just had the variables and then someone wanted to compare against some other magic text value so I added that later. Given that 1000s of users probably already had the variable setup the old way, it's much safer to leave well alone than try to migrate to the expression.
One of the reasons is that it sometimes prevents for creating/adding a "useless" Set variable X=some_magic_text to compare it to a constant value, for example.
 
Top