title: If statement in QML
body: <p>Completely new to QT and QML. I'm trying to set the color of a rectangle based on the relationship between the two propery doubles <code>callValue</code> and <code>handRaiseXBB</code>, but I get the error</p>
  
  <blockquote>
    <p>unexpected token if" </p>
  </blockquote>
  
  <p>and </p>
  
  <blockquote>
    <p>expected a qualified name id</p>
  </blockquote>
  
  <p>Could anyone tell me what I am doing wrong?</p>
  
  <pre><code>import QtQuick 2.0
  
  Item{
      id: hand
  
      property double callValue: 0.0
  
      property double handRaiseXBB: 100
      property string handCallColor: "green"
      property string handFoldColor: "grey"
  
      Rectangle {
          anchors.fill: hand
          if (hand.callValue &gt;= hand.handRaiseXBB) {
              color: hand.handFoldColor
          }
          else {
              color: hand.handCallColor
          }
      }
  }
  </code></pre>