<div dir="ltr">Such an elegant solution - thank you.<div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span class=""><div><br></div></span><div>This can be done with one ternary operator:</div><div>my $value = $self->TicketObj->FirstCustomFieldValue('RMA Type') eq 'Student Withdrawl' ? <span style="font-family:monospace,monospace">"RMA-" . $Num : </span><span style="font-family:monospace,monospace">"RMA-" . $Num . $Append;</span></div><div><br></div><div>Some notes:</div><div>- The condition here is:  $self->TicketObj->FirstCustomFieldValue('RMA Type') eq 'Student Withdrawl'</div><div>- If the condition is true then $value will equal what's between the ? and the : (colon)</div><div>- If the condition is false then $value will equal what's between the : and the ; (semi-colon)</div><div><br></div></div></div></blockquote></div>
</div></div>