#whats the point of returning end?

1 messages · Page 1 of 1 (latest)

leaden moat
#

difference between return and return end

when do I use which?

coarse stratus
#

If you have an if statement and you do it in one line

#

Then you get if ..... then return end

#

But thats a simplified way of writing it like
if ..... then
return
end

#

The end is just finishing the if statement

leaden moat
#

ohhhh

leaden moat
coarse stratus
leaden moat
#

like "if block then return end" saying to exit the function without having to write all of that mumbo jumbo?

#

alr

#

ty

coarse stratus
#

You can put an if statement if its simple like that on one line to make it look cleaner

leaden moat
#

Appreciate you, respect for not being a prick about it.