just say "return".
Whenever it is hit, it will return to last call.
Code:carry_out_logic: if counter=4 then toggleme=~toggleme LED_4=1 return endif if counter=6 then LED_6=1 return endif (...other if-then stuff...) return ' if nothing executed so far, it returns anyway.
Bookmarks