Greetings from a KM newbies (Great product!)
I have a KM macro that is initially triggered with a key combination. It then is supposed to run continually in a loop (prob every second)
It does the following:
A. Firstly it runs an Initialisation routine
B. Then it runs its Main routine.
C. When it has finished, depending upon various parameters, it needs to 'loop back' either to the 'Main' routine (in middle of my code) or it need to loop back to the very beginning of my 'Initialisation' routine.
Depending upon certain parameters, in most cases the Main routine needs to be called again and run in a loop.
However some times it needs to loop back to the very beginning and run the Init routine again.
QUESTION-1: Is there the equivalent of a 'GOTO' (my age is showing routine with KM as this would solve my problems?
i.e. if x=y then Goto 'Initialisation' - else Goto 'Main'
QUESTION-2:
As a way of restarting the whole macro from the beginning, is It legitimate to loop back and run the full routine each timeby calling the actual macro by its name each time using 'Execute a macro' action?
(One solution I guess is to split my macro into sub macros and call them as required.) This seems overkill...
Detailed comments greatly appreciated
Thanks
Mik