Sorry Felipe, I was thinking of exiting from a loop, there are some options there (repeat and while) which look redundant.
Perhaps you can use a procedure instead of a function and just return from the procedure?
From Jal manual:
RETURN [ expr ]
When executed, the sub program immediately returns. If the sub program is a FUNCTION, expr is
required. If it is a PROCEDURE, expr is forbidden.
About other languages, each time I'm looking at Arduino examples I regret the missing of compatible math representation in Jal. Each time I'm struggling with Arduino IDE, I heavily appreciate Jal.
I really don't want an IDE where I can't even look at the library's content. You need another editor to see Arduino library files. :) However, all programmable components in this world have Arduino libraries. Weird.