<div dir="ltr"><div>I don't think you need a local variable at all. In your script write</div><div><br></div><div><span style="font-family:monospace">if tacet_text == nil then</span></div><div><span style="font-family:monospace">   tacet_text = "TACET'</span></div><div><span style="font-family:monospace">end</span></div><div><br></div><div>In your prefix write:</div><div><br></div><div><span style="font-family:monospace">tacet_text = "IT WORKS!"</span></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 2, 2022 at 2:02 PM Jacob Winkler <<a href="mailto:jacob.winkler@mac.com">jacob.winkler@mac.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 id="gmail-m_487644839953445188__MailbirdStyleContent" style="font-size:10pt;font-family:Arial;color:rgb(0,0,0);text-align:left" dir="ltr">Hey folks, and by folks I may mean mostly Robert Patterson, can anyone offer some advice on how to use the new 'Optional' field in RGP Lua? It seems like the perfect place for a user to store their own custom variables, but I'm having a little difficulty with it.<div></div><div><br></div><div>In the screenshot below, you can see that I am successfully setting up my 'user variable'. However, I want the script to not RELY on the presence of the user variable, I want it to work no matter what. To that end, I set up an if/then that tests to see if my user variable is nil. If it is not nil, then the script will use its value. If it IS nil, then it will use another value that I have hard coded. Seems like it should work... But it doesn't. </div><div><br></div><div><img id="gmail-m_48764483995344518842935a03-0b2b-4daf-9b6e-052d5aaf967f" src="cid:17ebc4e4715cb971f161" style="font-size: 10pt;" width="auto"></div><div><br></div><div>Any suggestions on how this could be set up better?</div><div><br></div><div>-Jake</div></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>