title: Loop within IF statement condition
body: <p>i just want to know if there is a way for a loop to be on the If statement condition?</p>
  
  <p>sample:</p>
  
  <pre><code>if((string.contains(stringlist.hello().value(0),Qt::CaseInsensitive))||(string.contains(stringlist.hello().value(1),Qt::CaseInsensitive))||(string.contains(stringlist.hello().value(2),Qt::CaseInsensitive)))
  {
  ...
  }
  </code></pre>
  
  <p>to be:</p>
  
  <pre><code>if
  (
  for(int i=0; i &lt; stringlist.hello().size(); i++)
  {
  string.contains(stringlist.hello().value(i),Qt::CaseInsensitive)
  }
  )
  {
  ...
  }
  </code></pre>
  
  <p>by the way hello() function retrieves list of data from the database.
  the purpose of this program is to check a string if it contains some keywords from the database.</p>