title: magento check if product value contains a specific word
body: <p>Working with magento I have a custom option for a product which has rows with a date and then a location as it's title. For example the options could be: *</p>
  
  <ul>
  <li>29th October - London,  </li>
  <li>26th November - Leeds, </li>
  <li>28th November -
  London.</li>
  </ul>
  
  <p>Is it possible to write an if else statement based on just part of the custom option's title value?</p>
  
  <p>for example </p>
  
  <pre><code>&lt;?php if($value == "Leeds"): ?&gt;
  Content
  &lt;?php else : ?&gt;
  other content 
  &lt;?php endif : ?&gt;
  </code></pre>
  
  <p>Also, how to I call the custom option values? </p>