tanutanu
Well-known member
Hi,
Please consider adding break statement to avoid meaningless while loop.
Even though a matched condition was found by nested if statement in while loop, the loop continues until while condition is filled.
Only I can do is cancel macro itself. Before do that I can remember the fact in boolean and call itself again. with the boolean value, I can check the running state in if statement and branch. It works good but not simple.
Jumping to another macro is available by run macro action. However, I have to remember a returning position when I want to get back to next statement in original macro file.
I made so many functions(subroutine) in one my library file. It is very easy to maintain same procedure in single source. Now I emulate the behavior using if triggered statement and global variable to remember a returning position. I would like to replace it with goto(call) and return with unique label, regardless self or another macro file.
Cheers
Please consider adding break statement to avoid meaningless while loop.
Even though a matched condition was found by nested if statement in while loop, the loop continues until while condition is filled.
Only I can do is cancel macro itself. Before do that I can remember the fact in boolean and call itself again. with the boolean value, I can check the running state in if statement and branch. It works good but not simple.
Jumping to another macro is available by run macro action. However, I have to remember a returning position when I want to get back to next statement in original macro file.
I made so many functions(subroutine) in one my library file. It is very easy to maintain same procedure in single source. Now I emulate the behavior using if triggered statement and global variable to remember a returning position. I would like to replace it with goto(call) and return with unique label, regardless self or another macro file.
Cheers