[JW Lua] Stopping a script

Jari Williamsson jari.williamsson at mailbox.swipnet.se
Wed Sep 10 16:13:59 CEST 2014


Charles,

I spoke too soon. "return" can't be used outside a block, so to stop the 
script with a line of code use "do return end".


Best regards,

Jari Williamsson


On 2014-09-10 15:54, Jari Williamsson wrote:
> On 2014-09-10 15:49, Charles O. Lawrence wrote:
>
>> While debugging a script, I want to stop the script after going so far.
>> What is the best way to stop a script (Lua command)?  The script is
>> not in a
>> loop, just executing commands in-line.
>
> return
>
> You can also use a return value from the script, which will (if it's a
> number) be shown in the console.
>
>
> Best regards,
>
> Jari Williamsson
>
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
>






More information about the JWLua mailing list