Action blocks doesn't support passing boolean variables

Deathwing

New member
You can pass the value of any local or global variable types as input to an Action block, except boolean, which accepts only static True, False or Default value.
Is it supposed to be like that?

By the way, Macrodroid dev, outstanding job on the app!
 

tanutanu

Well-known member
You can pass the value of any local or global variable types as input to an Action block, except boolean, which accepts only static True, False or Default value.
Is it supposed to be like that?

By the way, Macrodroid dev, outstanding job on the app!
Yeah, I confirmed it.
At this moment, cast to int on your macro first, then pass to your action block if the boolean value is needed.
 

Attachments

  • IMG_20220122_071203.jpg
    IMG_20220122_071203.jpg
    144.2 KB · Views: 5
  • IMG_20220122_071234.jpg
    IMG_20220122_071234.jpg
    119.6 KB · Views: 5
  • IMG_20220122_071217.jpg
    IMG_20220122_071217.jpg
    155.5 KB · Views: 5

MacroDroidDev

Administrator
Staff member
@Deathwing Yeah you are spot on, this is a bad limitation. I must confess to realising this at some point as something I needed to add then lost track of it.

I shall add it to the next update to avoid having to do the clunk workaround of using ints (which is the only way right now). I guess I will just keep the existing drop down spinner but just populate that with all the possible boolean variables as well.
 
Top