Search results

  1. Codesalot

    How to declare global variable in macro, but do not change it if it is already declared?

    The issue is that I still have not gotten your fix working. I understand what your macro does, but it does not work on my machine. I am wondering if the output variable was possibly not being set because the parent macro is running first, but it seems to run okay on other people's devices. Thanks!
  2. Codesalot

    How to declare global variable in macro, but do not change it if it is already declared?

    I want to be able to modify the variable in different action blocks (like setting it to false when Bedtime Mode is on). My version still does not seem to work. I have tested it on a Pixelbook and a Pixel 6 Pro, and I attached the macro. Thanks!
  3. Codesalot

    How to declare global variable in macro, but do not change it if it is already declared?

    I wonder if the issue is that the output variable is getting run after the program has already been redirected to run the parent macro again. Could this be the case?
  4. Codesalot

    How to declare global variable in macro, but do not change it if it is already declared?

    I see. If it is easier to avoid the block all together and use a loop instead, that could be a solution.
  5. Codesalot

    How to declare global variable in macro, but do not change it if it is already declared?

    It seems that the local variable can not be updated in the action block, as it is local. That was the issue I was seeing when using local variables.
  6. Codesalot

    How to declare global variable in macro, but do not change it if it is already declared?

    I don't see the local variable inside the snoozed action block.
  7. Codesalot

    How to declare global variable in macro, but do not change it if it is already declared?

    It seems (on my Pixel) to not show the notification again when I snooze it.
  8. Codesalot

    How to declare global variable in macro, but do not change it if it is already declared?

    No, the issue is that the action block, when it reruns the macro, does not meet the first if statement to show the notification again.
  9. Codesalot

    How to declare global variable in macro, but do not change it if it is already declared?

    If I could check what the current status of the variable is, and set it to false if the status is not true that may work.
  10. Codesalot

    How to declare global variable in macro, but do not change it if it is already declared?

    @Dimlos here is the macro in it's current form. I made it a .txt file so an upload is allowed. Change the extension to open it. Interfacing between the action block and parent macro is interesting, when trying to change the variable (without it changing it back). Thanks!
  11. Codesalot

    How to declare global variable in macro, but do not change it if it is already declared?

    I am trying to use a global variable because a local one is not available in the action block, wherein I am trying to run it. Thanks!
  12. Codesalot

    How to declare global variable in macro, but do not change it if it is already declared?

    @Dimlos Here is an image of the macro. I highlighted the spots that I was referring to. In the "Snooze" action block the variable called snoozed is set to true, then after a delay, the macro is rerun to show the notification again, when the trigger fires. I really hope this is able to show you...
  13. Codesalot

    How to declare global variable in macro, but do not change it if it is already declared?

    Hello everyone, I am currently working on a macro that involves an action block setting a variable and then rerunning the parent macro. The if statement in the parent macro only runs if that variable has been set. However, I have encountered a problem with making the variable global. To solve...
Top