<div dir="ltr">Have you tried using the error function to return your error?<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 19, 2022 at 9:50 AM Jan Angermüller <<a href="mailto:jan@angermueller.com">jan@angermueller.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Robert et al,<br>
<br>
finenv.ExecuteLuaScriptItem can return up to three values.<br>
<br>
But how can I force a script to return a certain error?<br>
I thought that a simpe "return false" or "return true" at the end of
the executed script could influence one of the three values. <br>
But that didn't work. I always get the return values
"true","nil","nil".<br>
<br>
It's more that I only want to return a true or false - there is no
real error.<br>
<br>
Any ideas?<br>
<br>
Tested with v0.65 on Windows/Finale 27.<br>
<br>
Jan<br>
</div>
_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote></div>