Not working Break From Loop

sohocenter

New member
Refer to attached file which I coded.
and refer to below link that how to move at brightness less than 65%.

What I expect is that brightness goes to 100% and break from loop, but brightness goes to 50% again.
It means break from loop is not working.

Please check the code and correct it if wrong.
Thanks.
 

Attachments

  • KakaoTalk_20240207_020158689.jpg
    KakaoTalk_20240207_020158689.jpg
    392.4 KB · Views: 14

Josué García

MacroDroid Support
Staff member
Refer to attached file which I coded.
and refer to below link that how to move at brightness less than 65%.

What I expect is that brightness goes to 100% and break from loop, but brightness goes to 50% again.
It means break from loop is not working.

Please check the code and correct it if wrong.
Thanks.
For the "Break From Loop" action to take effect, it must be inside a loop.

And the action is inside a condition, so the action has no effect.
 

Josué García

MacroDroid Support
Staff member
Only the first action within the condition, which sets the brightness to 100%, is valid.
Please provide more information about what you are trying to create so that we can help you more easily.
 

Dm114

Well-known member
Refer to attached file which I coded.
and refer to below link that how to move at brightness less than 65%.

What I expect is that brightness goes to 100% and break from loop, but brightness goes to 50% again.
It means break from loop is not working.

Please check the code and correct it if wrong.
Thanks.
As @Josué García said the IF condition is not a loop so Break from loop doesn't work and your macro executes all actions below IF clause: i.e. Brightness is set to 100% then to 50% after 2 Wait 100ms.
 
Top