title: Sideflow.js GotoIf how do I use conditionals
body: <p>I've been working on three different ways to solve this.  What I do know is the EASIEST way hopefully would be to do the following.</p>
  
  <p>Form Field 1 (ignore syntax, I'm just setting up an example here) the id= is the important part in the two form fields.</p>
  
  <pre><code>&lt;select name="select" id="pick_animal" value=""&gt;
    &lt; option="the fast cat" id="1"&gt;
    &lt; option="the fast dog" id="2"&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Form Field 2</p>
  
  <pre><code> &lt;input type="text" id="some_animal" value="the fast cat from dover"&gt;
  </code></pre>
  
  <p>I need to detect that id="some_animal" contains cat so I can perform an action on the correct option in field 1. I can do the second part just fine, I just can't detect "cat" in only the input with id "some_animal" storeTextPresent just looks for cat to exist anywhere on the page. ugh!!
  one way I can see to solve this would be to do the following.</p>
  
  <pre><code>storeValue | id=some_animal | value_some_animal
  gotoIf | ${value_some_animal} contains "cat"   | my_cat_label
  runscript | (message here)
  goto | end
  label | my_cat_label
  run some commands here.
  label | end
  </code></pre>
  
  <p>so at the gotoIf statement, I need to do a conditional basically want to see if it contains
  "<em>cat</em>", and I'm using the HTML Driver in selenium IDE, I would like to avoid selenium webdriver if I can help it.</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td&gt;gotoIf&lt;/td&gt;
  &lt;td&gt; ${value_some_animal} ......&lt;/td&gt;
      &lt;td&gt;target2&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>How would I have the gotoIf evaulate that it <strong><em>contains</em></strong> "cat", with javascript or any other method?</p>
  
  <pre><code>&lt;td&gt; '${value_some_animal}' == 'cat'&lt;/td&gt;  &lt;--- doesn't work
  &lt;td&gt; '${value_some_animal}' == '*cat*'&lt;/td&gt;  &lt;--- doesn't work
  </code></pre>
  
  <p>etc....
  thanks in advance.</p>