title: If any element satisfies condition
body: <pre><code>a&lt;-sample(1:100,replace=T)
  </code></pre>
  
  <p>I would like to have an if condition that looks at <code>a</code> and if any of the elements of <code>a</code> satisfy the condition then it executes a command.</p>
  
  <p>how can this be done?</p>