What do you mean by the end of line?
If the script is at the end of it's function then no it doesn't need to return
alias test {
var %x = 1
if (%x == 1) { echo -a Point 1 | goto B }
A:
echo -a A point
B:
echo -a B Point | goto A
}
this checks to see if %x == 1 then moves to point B then moves to point A and since its the end... I don't need to return, if that's not what you mean't please describe.