[JW Lua] ExecuteLuaScriptItem: returning an error message

Jan Angermüller jan at angermueller.com
Mon Dec 19 16:49:11 CET 2022


Robert et al,

finenv.ExecuteLuaScriptItem can return up to three values.

But how can I force a script to return a certain error?
I thought that a simpe "return false" or "return true" at the end of the 
executed script could influence one of the three values.
But that didn't work. I always get the return values "true","nil","nil".

It's more that I only want to return a true or false - there is no real 
error.

Any ideas?

Tested with v0.65 on Windows/Finale 27.

Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20221219/f2a1e427/attachment.html>


More information about the JWLua mailing list