title: How to programmatically set a conditional field with OR functionality in Drupal 7
body: <p>In mymodule_form_alter() I am programmatically setting states for my conditional fields.
  I.E.</p>
  
  <pre><code>$form['my_field_one']['#states'] = array(
                'visible' =&gt; array(
                  ':input[name="my_dependee_field[und]"]' =&gt; array('value' =&gt; 'primary'),
                ),
              );
  </code></pre>
  
  <p>And this works great!</p>
  
  <p>However, I need to assign some of my fields the OR functionality (multiple allowed dependee values) and can't quite figure out how to assign it programmatically (please excuse my limited experience with PHP).</p>
  
  <p>I've tried some things such as...</p>
  
  <pre><code>$form['my_field_one']['#states'] = array(
    'visible' =&gt; array(
      ':input[name="my_dependee_field[und]"]' =&gt; array('value' =&gt; array('0' =&gt; 'primary','1' =&gt; 'secondary',),),
    ),
  );
  </code></pre>
  
  <p>...with (obviously) no luck.</p>
  
  <p>Can any kind soul lend a helping hand, or point me in the right direction.  It is crucial that I accomplish this programmatically.</p>
  
  <p>Any assistance is GREATLY appreciated.</p>
  
  <p>THANKS!</p>