Loop in Macro


I spent much time to find answer for my question without result :smiley: How to create loop in my recorded Macro. Precisely…

I recorded new macro with one action UnCreaseAll. How to make a loop to play this action for every subtool ?

Here you are:

[IButton,???,‚ÄúUncrease All for all subtools‚ÄĚ,
[VarSet,activST,[SubToolGetActiveIndex]]//store active subtool
[Loop,[SubToolGetCount],//loop through all subtools
//put code below for each subtool

,n]//end loop
[SubToolSelect,activST]//reselect active subtool

]//end of macro

Ohhh thank you mate!