Line numbering + action allowing to jump to certain line #

Lukelane1984

New member
Hello, my name is Luke.

I'm not new to Macrodroid, in fact, I've been a fan and user for quite a while. However, I am new to the forum, so if my idea for, perhaps a possible new feature, has been discussed before, I apologize. I did a quick look around and didn't see anyone mentioning it before, so I thought I'd give it a go and just post it.

What I was thinking might be useful, is if the list of actions in a macro, every line, so to speak, were all assigned a number, in sequence,
perhaps shown as 001, 002, 003........999, shown at the very left of each action/condition block.

With this functionality, there could be an action that jumps directly to a specific line number and then the macro just continues running from that line onwards.

Of course a variable would have to be defined, either an integer, so it won't run ad infinitum in case it refers back to a line above the action itself.
(I do realize this just sounds like a WHILE/DO loop with a set number of repetitions, but this is just one example)
Or by using a boolean value to determine wether or not the action has been run yet, and has already made the script jump to, say, line 42 - or not.

Another option is an action that could be configured to exclusively run just a specific section, (or, sections) of a script, when certain conditions are met.

IF condition1 = x, AND condition2 = y, THEN:
run section of script from, say, line 11, up to and including, line 27, and omit the rest.
The rest of the script could then be canceled, under these specific conditions, except for the section(s) the user has pre-defined.

Stuff like this could be easily done by embedding the action within an IF-THEN-(ELSE) clause.

This, I think, would allow for more flexibility and freedom in how a user writes their scripts. And there are probably a lot more situations where this could be useful.

Though, it's probably a good idea to make the line numbering optional, so if someone doesn't like the feature, it can easily be turned it off.
 

Yulia

New member
I'd love a feature that lets me jump back to a certain point inside my macro! I know I could use repeat but if I'm already repeating inside a condition it would make it easier to be just able to jump back.
 
Top