<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        
                                        
                                            
                                        
                                        
                                        <img id="4a2454ae-3734-4ffd-bf5c-ba038673ef27" src="cid:8c6eb9da-bad5-4864-bd29-7582bcf71ee0" width="auto"></img><div><br></div><div>Yep! Both solutions worked:</div><div><blockquote class="history_container" type="cite" style="margin-top: 20px; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px;"><div style="font-family: Arial, Helvetica, sans-serif;"><robert@robertgpatterson.com>tacet_text = tacet_text or "TACET"</robert@robertgpatterson.com></div></blockquote></div><div style="text-align: left;" dir="ltr"><br></div><div style="text-align: left;" dir="ltr">is what I I used here, but the other method with ' if == nil then ' also worked.<br></div><div style="text-align: left;" dir="ltr"><br></div><div style="text-align: left;" dir="ltr">Thanks Robert!</div><div><blockquote class="history_container" type="cite" style="margin-top: 20px; margin-left: 0px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px;"><div style="font-family: Arial, Helvetica, sans-serif;"><robert@robertgpatterson.com></robert@robertgpatterson.com></div></blockquote><div class="mb_sig"></div><blockquote class="history_container" type="cite" style="border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;">
                        <p style="color: #AAAAAA; margin-top: 10px;">On 2/2/2022 1:38:53 PM, jwlua-request@jwmusic.nu <jwlua-request@jwmusic.nu> wrote:</p><div style="font-family:Arial,Helvetica,sans-serif">Send JWLua mailing list submissions to
<br>      jwlua@jwmusic.nu
<br>
<br>To subscribe or unsubscribe via the World Wide Web, visit
<br>      http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
<br>or, via email, send a message with subject or body 'help' to
<br>      jwlua-request@jwmusic.nu
<br>
<br>You can reach the person managing the list at
<br>      jwlua-owner@jwmusic.nu
<br>
<br>When replying, please edit your Subject line so it is more specific
<br>than "Re: Contents of JWLua digest..."
<br>
<br>
<br>Today's Topics:
<br>
<br>   1. Re: Using the 'Optional' code field in RGP Lua (Robert Patterson)
<br>
<br>
<br>----------------------------------------------------------------------
<br>
<br>Message: 1
<br>Date: Wed, 2 Feb 2022 15:38:00 -0600
<br>From: Robert Patterson <robert@robertgpatterson.com>
<br>To: "The JW Lua script plug-in." <jwlua@jwmusic.nu>
<br>Subject: Re: [JW Lua] Using the 'Optional' code field in RGP Lua
<br>Message-ID:
<br>      <caacnceus42upbc-zn+w+jsjcwavyczv7g4ttuy+55w_mklayig@mail.gmail.com>
<br>Content-Type: text/plain; charset="utf-8"
<br>
<br>This may also work in your script instead of the if statement. Not sure.
<br>But if it does I'd like to know.
<br>
<br>tacet_text = tacet_text or "TACET"
<br>
<br>
<br>
<br>On Wed, Feb 2, 2022 at 3:21 PM Robert Patterson <robert@robertgpatterson.com>
<br>wrote:
<br>
<br>> I don't think you need a local variable at all. In your script write
<br>>
<br>> if tacet_text == nil then
<br>>    tacet_text = "TACET'
<br>> end
<br>>
<br>> In your prefix write:
<br>>
<br>> tacet_text = "IT WORKS!"
<br>>
<br>>
<br>> On Wed, Feb 2, 2022 at 2:02 PM Jacob Winkler <jacob.winkler@mac.com>
<br>> wrote:
<br>>
<br>>> Hey folks, and by folks I may mean mostly Robert Patterson, can anyone
<br>>> offer some advice on how to use the new 'Optional' field in RGP Lua? It
<br>>> seems like the perfect place for a user to store their own custom
<br>>> variables, but I'm having a little difficulty with it.
<br>>>
<br>>> In the screenshot below, you can see that I am successfully setting up my
<br>>> 'user variable'. However, I want the script to not RELY on the presence of
<br>>> the user variable, I want it to work no matter what. To that end, I set up
<br>>> an if/then that tests to see if my user variable is nil. If it is not nil,
<br>>> then the script will use its value. If it IS nil, then it will use another
<br>>> value that I have hard coded. Seems like it should work... But it doesn't.
<br>>>
<br>>>
<br>>> Any suggestions on how this could be set up better?
<br>>>
<br>>> -Jake
<br>>> _______________________________________________
<br>>> JWLua mailing list
<br>>> JWLua@jwmusic.nu
<br>>> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
<br>>>
<br>>
<br>-------------- next part --------------
<br>An HTML attachment was scrubbed...
<br>URL: <http: jwmusic.nu="" pipermail="" jwlua_jwmusic.nu="" attachments="" 20220202="" 62b72070="" attachment.html="">
<br>-------------- next part --------------
<br>A non-text attachment was scrubbed...
<br>Name: image.png
<br>Type: image/png
<br>Size: 64736 bytes
<br>Desc: not available
<br>URL: <http: jwmusic.nu="" pipermail="" jwlua_jwmusic.nu="" attachments="" 20220202="" 62b72070="" attachment.png="">
<br>
<br>------------------------------
<br>
<br>Subject: Digest Footer
<br>
<br>_______________________________________________
<br>JWLua mailing list
<br>JWLua@jwmusic.nu
<br>http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
<br>
<br>
<br>------------------------------
<br>
<br>End of JWLua Digest, Vol 88, Issue 4
<br>************************************
<br></http:></http:></jacob.winkler@mac.com></robert@robertgpatterson.com></caacnceus42upbc-zn+w+jsjcwavyczv7g4ttuy+55w_mklayig@mail.gmail.com></jwlua@jwmusic.nu></robert@robertgpatterson.com></div></blockquote>
                                        
                                        </div></div>