<div dir="ltr">Hey Chauncey, <div><br></div><div>We put something together for this at CW MARS. </div><div><br></div><div><span class="gmail-C9DxTc" style="box-sizing:border-box;color:rgb(33,33,33);font-variant-ligatures:none;font-family:"Source Code Pro",Arial;font-size:10pt;vertical-align:baseline"><span ng-if="patron.pref_family_name">{{patron.pref_family_name}},</span></span><span class="gmail-C9DxTc" style="box-sizing:border-box;color:rgb(33,33,33);font-variant-ligatures:none;font-family:"Source Code Pro",Arial;font-size:10pt;vertical-align:baseline"><br style="box-sizing:border-box"></span><span class="gmail-C9DxTc" style="box-sizing:border-box;color:rgb(33,33,33);font-variant-ligatures:none;font-family:"Source Code Pro",Arial;font-size:10pt;vertical-align:baseline"><span class="gmail-Apple-tab-span" style="box-sizing:border-box;white-space:pre">        </span></span><span class="gmail-C9DxTc" style="box-sizing:border-box;color:rgb(33,33,33);font-variant-ligatures:none;font-family:"Source Code Pro",Arial;font-size:10pt;vertical-align:baseline"><span ng-if="!patron.pref_family_name">{{patron.family_name}},</span></span><span class="gmail-C9DxTc" style="box-sizing:border-box;color:rgb(33,33,33);font-variant-ligatures:none;font-family:"Source Code Pro",Arial;font-size:10pt;vertical-align:baseline"><br style="box-sizing:border-box"></span><span class="gmail-C9DxTc" style="box-sizing:border-box;color:rgb(33,33,33);font-variant-ligatures:none;font-family:"Source Code Pro",Arial;font-size:10pt;vertical-align:baseline"><span ng-if="patron.pref_first_given_name">{{patron.pref_first_given_name}}</span></span><span class="gmail-C9DxTc" style="box-sizing:border-box;color:rgb(33,33,33);font-variant-ligatures:none;font-family:"Source Code Pro",Arial;font-size:10pt;vertical-align:baseline"><br style="box-sizing:border-box"></span><span class="gmail-C9DxTc" style="box-sizing:border-box;color:rgb(33,33,33);font-variant-ligatures:none;font-family:"Source Code Pro",Arial;font-size:10pt;vertical-align:baseline"><span class="gmail-Apple-tab-span" style="box-sizing:border-box;white-space:pre">        </span></span><span class="gmail-C9DxTc" style="box-sizing:border-box;color:rgb(33,33,33);font-variant-ligatures:none;font-family:"Source Code Pro",Arial;font-size:10pt;vertical-align:baseline"><span ng-if="!patron.pref_first_given_name">{{patron.first_given_name}}</span></span></div><div><span class="gmail-C9DxTc" style="box-sizing:border-box;color:rgb(33,33,33);font-variant-ligatures:none;font-family:"Source Code Pro",Arial;font-size:10pt;vertical-align:baseline"><br></span></div><div><span class="gmail-C9DxTc" style="box-sizing:border-box;color:rgb(33,33,33);font-variant-ligatures:none;font-family:"Source Code Pro",Arial;font-size:10pt;vertical-align:baseline">Hope this helps!</span></div><div><span class="gmail-C9DxTc" style="box-sizing:border-box;color:rgb(33,33,33);font-variant-ligatures:none;font-family:"Source Code Pro",Arial;font-size:10pt;vertical-align:baseline"><br></span></div><div><span class="gmail-C9DxTc" style="box-sizing:border-box;color:rgb(33,33,33);font-variant-ligatures:none;font-family:"Source Code Pro",Arial;font-size:10pt;vertical-align:baseline">Brett</span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 20, 2024 at 3:28 PM Chauncey Montgomery via Evergreen-general <<a href="mailto:evergreen-general@list.evergreen-ils.org">evergreen-general@list.evergreen-ils.org</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">We are trying to create a conditional statement within the receipt templates that will display a user's preferred name, if that condition is true; otherwise, the given name will be displayed on the receipt.<br>
<br>
How would I go about creating a conditional statement that checks if there is a value in the patron.pref_first_given_name field?<br>
<br>
Many thanks.<br>
CM<br>
--<br>
Chauncey Montgomery<br>
Community Library<br>
44 Burrer Dr | Sunbury, OH 43074<br>
740-965-3901 | <a href="https://www.yourcl.org" rel="noreferrer" target="_blank">https://www.yourcl.org</a><br>
_______________________________________________<br>
Evergreen-general mailing list<br>
<a href="mailto:Evergreen-general@list.evergreen-ils.org" target="_blank">Evergreen-general@list.evergreen-ils.org</a><br>
<a href="http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general" rel="noreferrer" target="_blank">http://list.evergreen-ils.org/cgi-bin/mailman/listinfo/evergreen-general</a><br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><span><div dir="ltr" style="margin-left:0pt" align="left"><table style="border:none;border-collapse:collapse;table-layout:fixed;width:468pt"><colgroup><col><col width="492"></colgroup><tbody><tr style="height:0pt"><td style="border-width:1pt 1.5pt 1pt 1pt;border-style:solid;border-color:rgb(255,255,255) rgb(22,65,111) rgb(255,255,255) rgb(255,255,255);vertical-align:top;overflow:hidden"><br><span style="border:none;display:inline-block;overflow:hidden;width:139px;height:95px"><img src="https://lh7-us.googleusercontent.com/ALU1b5jsx35Sh0_p2T0BAGfgwKE3io8Q-52hjcTG7FE95gS5_2iMKOi9YxpPahAjmw9r_WN56whX-PzI8cylq4j8G362VHC2VIcbBm1Fp5GjgvEfvNUW1_0FzC8OefwJ6g9YvsqvhD-GEXS9qvCAdx4" width="139" height="95" style="margin-left: 0px; margin-top: 0px;"></span></td><td style="border-width:1pt 1pt 1pt 1.5pt;border-style:solid;border-color:rgb(255,255,255) rgb(255,255,255) rgb(255,255,255) rgb(22,65,111);vertical-align:top;padding:12.168pt;overflow:hidden"><p dir="ltr" style="line-height:1.62;margin-top:0pt;margin-bottom:0pt"><span style="font-size:12pt;font-family:"Lucida Sans",sans-serif;color:rgb(22,65,111);background-color:transparent;font-weight:700;vertical-align:baseline">Brett French</span><span style="font-size:13.5pt;font-family:"Lucida Sans",sans-serif;color:rgb(22,65,111);background-color:transparent;font-weight:700;vertical-align:baseline"> </span><span style="font-size:10pt;font-family:"Lucida Sans",sans-serif;color:rgb(22,65,111);background-color:transparent;vertical-align:baseline">(they/them)</span><span style="font-size:13.5pt;font-family:"Lucida Sans",sans-serif;color:rgb(22,65,111);background-color:transparent;vertical-align:baseline"><br></span><span style="font-size:10pt;font-family:"Lucida Sans",sans-serif;color:rgb(33,33,33);background-color:transparent;vertical-align:baseline">Library Applications Associate II, C/W MARS, Inc.</span></p><p dir="ltr" style="line-height:1.62;margin-top:0pt;margin-bottom:0pt"></p><hr><p></p><p dir="ltr" style="line-height:0.891;margin:1pt"><span style="font-size:9pt;font-family:"Lucida Sans",sans-serif;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline"><span style="border:none;display:inline-block;overflow:hidden;width:20px;height:20px"><img alt="icon" src="https://lh7-us.googleusercontent.com/jSEydPMHLe0K8Fa4I0SBYKFKlnzgygnr0LwnFVuWowWcQgxOlbrA3Ujohlll41XYW7i7zfZznaIvcxcqfIXOYU2AiQGKwrLRAeIk-v1lqoxtJoXE0CzTRZpXY8nEX5Gemvwh6Otf-AzEkScMJV3w8wM" width="20" height="20" style="margin-left: 0px; margin-top: 0px;"></span></span><span style="font-size:9pt;font-family:"Lucida Sans",sans-serif;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline"> </span><span style="font-size:9pt;font-family:"Lucida Sans",sans-serif;background-color:transparent;vertical-align:baseline"><font color="#1155cc"><u><a href="mailto:bfrench@cwmars.org" target="_blank">bfrench@cwmars.org</a></u></font></span><span style="font-size:9pt;font-family:"Lucida Sans",sans-serif;color:rgb(0,0,0);background-color:transparent;font-weight:700;vertical-align:baseline"> | </span><span style="font-size:9pt;font-family:"Lucida Sans",sans-serif;color:rgb(0,0,0);background-color:transparent;font-weight:700;vertical-align:baseline"><span style="border:none;display:inline-block;overflow:hidden;width:20px;height:20px"><img alt="icon" src="https://lh7-us.googleusercontent.com/FuxZuU1yp5uzO16YT3Wq7rYVujwafT26TlhKeinWp2siXYER269pVrKr8kN58Q7t_wibu-ZOeYMDTNCOrQlyiuNn7xKSaIneln7OteDt0hNDg2KD9g_-feZmfc8bjQJk7y9Hp_moV0r213z985q8T_4" width="20" height="20" style="margin-left: 0px; margin-top: 0px;"></span></span><a href="https://www.cwmars.org/" target="_blank"><span style="font-size:9pt;font-family:"Lucida Sans",sans-serif;color:rgb(33,33,33);background-color:transparent;vertical-align:baseline">www.cwmars.org</span></a></p><p dir="ltr" style="line-height:0.891;margin:10pt 1pt 1pt"><span style="font-size:9pt;font-family:"Lucida Sans",sans-serif;color:rgb(0,0,0);background-color:transparent;font-weight:700;vertical-align:baseline"><span style="border:none;display:inline-block;overflow:hidden;width:20px;height:20px"><img alt="icon" src="https://lh7-us.googleusercontent.com/z4R5BHyom3vMyveozcvJpPxRHQyl3ptEtWyI9v-KbMkK9Wb30Z3qMfprdEwzyrwXOVLEUS9kgHN5U1tuUZzNUUBT8ME-8aGPPtIqe19I7GF64OhU6J5UMGt5KA55hBoXzmzB7N_61JBHsSXDLgmjwtY" width="20" height="20" style="margin-left: 0px; margin-top: 0px;"></span></span><span style="font-size:9pt;font-family:"Lucida Sans",sans-serif;color:rgb(0,0,0);background-color:transparent;font-weight:700;vertical-align:baseline"> </span><span style="font-size:9pt;font-family:"Lucida Sans",sans-serif;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline">508-755-3323 x 1</span></p></td></tr></tbody></table></div></span></div></div>