<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi All,<div><br></div><div>I&#39;m looking for some guidance with this problem:</div><div><br></div><div>I have an EPrints phrase that uses pins. I can see where the pins are set up and create my own, so I could solve this using Perl.</div><div><br></div><div>I want to include a condition in my phrase that depends on the value contained in the pin. Example:</div><div><br></div><div><div>&lt;epp:phrase id=&quot;eprint_thesis_notify_mail&quot;&gt;</div><div>The embargo period has been set at: &lt;epc:pin name=&quot;emperiod&quot; /&gt; with the reason being given as testZZZZZZZZZZZZZZZZZtest:&lt;br/&gt;</div><div>&lt;epc:if test=&quot;emreason = &#39;&#39;&quot;&gt; No reason has been provided.&lt;/epc:if&gt;</div><div>&lt;epc:if test=&quot;&lt;epc:pin name=&#39;emreason&#39; /&gt; != &#39;&#39;&quot;&gt; &lt;epc:pin name=&quot;emreason&quot; /&gt; &lt;br/&gt;&lt;br/&gt;&lt;/epc:if&gt;</div><div>&lt;/epp:phrase&gt;</div></div><div><br></div><div>I&#39;ve used different format in each IF. I comment one out depending on which I&#39;m testing. The second one won&#39;t work which I&#39;m not surprised about). The pin in question is this &quot;emreason&quot; pin. Importantly, the phrase is in the perl script like this:</div><div><br></div><div>$mail = $repo-&gt;html_phrase( &quot;eprint_thesis_notify_mail&quot;, %pins );<br></div><div><br></div><div>I could do what I need in the Perl script, but this seems like a good chance to become more familiar with phrases, plus I want to use a similar set-up for another idea I have.</div><div><br></div><div>If anybody could point me in the right direction, I would really appreciate it.</div><div><br></div><div>Thanks,</div><div>James</div></div></div></div></div></div>