Exiting a function

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
Slopey
Posts: 24
Joined: Sun Jul 31, 2005 8:13 pm

Exiting a function

Post by Slopey »

Hi All,

I've been right through the Lua docs, and I can't find any way to exit a function prematurely. Is there an exit or other keyword which I'm missing?

Ta,
S.
nevyn
Posts: 136
Joined: Sun Jul 31, 2005 5:05 pm
Location: Sweden
Contact:

Re: Exiting a function

Post by nevyn »

Slopey wrote:Hi All,

I've been right through the Lua docs, and I can't find any way to exit a function prematurely. Is there an exit or other keyword which I'm missing?

Ta,
S.
Uh.

Code: Select all

return
?
Slopey
Posts: 24
Joined: Sun Jul 31, 2005 8:13 pm

Post by Slopey »

DOH! My humble apologies. I'll rtfm twice next time. :)

Thanks nevyn!
Post Reply