Is it possible to set this in macrodroid? If ("variable") > ("variable old value" + 0,5) ; then action this.

haydar

New member
Is it possible to set this in macrodroid? If ("variable") > ("variable old value" + 0,5) ; then action this.
 

Jacob L

Moderator (Lawsonator)
Yes. You can use the set variable action and use the magic text.

Set variable action (var1) then set var1 to (using magic text) var1+0.5
 

Snurre

Well-known member
Yes. You can use the set variable action and use the magic text.

Set variable action (var1) then set var1 to (using magic text) var1+0.5
I don't think thats what he means, I read it as it should check if var is bigger than var and then do someting and that is impossible
It needs 2 variables to do that
Set oldvar=var
If var > oldvar+0.5
Then........
Pls correct me if Im wrong
 

tanutanu

Well-known member
Yes, you are right. I need ">", not "=".
Remind the difference of decimal point:) and use decimal data type to the old variable when adding 0.5. You want to know more, see the attached picture please.

@Snurre, I learned and remember it when you point datetime format;)
 

Attachments

  • cast_test_copy_540x1613.png
    cast_test_copy_540x1613.png
    162.8 KB · Views: 6
Last edited:
Top