Are there any caveats to using multiple GOTOs to a single return from within IF-THEN-ELSE's in a subroutine? I am using it to skip irrelevant code once the first condition is met.
Example (for reference only, not trying to actually do anything):
I know I can make use of ELSIF to skip irrelevant code, but it just gets really messy to read when dealing with multiple conditions in multiple IF's.Code:carry_out_logic: if counter=4 then toggleme=~toggleme LED_4=1 goto continueon endif if counter=6 then LED_6=1 goto continueon endif (...other if-then stuff...) continueon: return
Bookmarks