<span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; background-color: rgba(255, 255, 255, 0.917969); ">Hi,<div><br></div><div>Your nearly there :-)</div><div><br></div>
<div>I've had similar problems when making scrips where you compare two string values.</div><div>The == symbols somehow are ignored making the scrip basically execute all if statements regardless of the condition. (kinda annoying)</div>
<div><br></div><div>I've solved this for myself by using this to compare a string:</div><div><br></div><div><span style="font-family: 'Courier New'; ">$my_prio =~ /^Priority 1/</span></div><div><br></div><div>
It lets you use regular expressions, the above states that my_prio has to start with Priority 1.</div><div><br></div><div>Since your prio number is at the back using this line might be more usefull for you:</div><div><br>
</div><div><font face="'courier new', monospace">$my_prio =~ /$1/</font></div><div><br></div><div>That should give an ok if the string inside my_prio ends with a 1.</div><div><br></div><div>Hope this solves it.</div>
<div><br clear="all">-- Bart</div></span>