adwsystems:
You can use the return statement in that manner.Why not turn the if statement around and if (second != lastSecond) then {}?
The advantage is you don't have to find or notice the statement in the middle of the subroutine that "aborts" execution. The subroutine will execute all the way to the end every time, but only execute inside the if statement if the criteria is met.
Good response! However, in my case there are only specific seconds where I want action. For example, at second 01, 21, 41.