title: <= is not a prefix unary operator
body: <p>My task is to create an iOS application that will allow the user to enter the following information:</p>
  
  <pre><code>•   First Name
  
  •   Last Name
  
  •   Age
  </code></pre>
  
  <p>The application will then display this information in a separate box as follows:</p>
  
  <p>Hi firstName lastName, you are Message.</p>
  
  <p>The Message will be replaced based on the age entered by the user as follows:</p>
  
  <p>If age is &lt; 12 Message => “a child”</p>
  
  <p>If age is >= 13 and &lt;= 19: Message => “a teenager”</p>
  
  <p>If age is > 19 and &lt;=29: Message => “a young man”</p>
  
  <p>If age is >= 30 and &lt;=49: Message => “a middle aged man”</p>
  
  <p>If age is >= 50 and &lt;=64: Message => “an experienced man”</p>
  
  <p>If age is >= 65: Message => “a senior man”</p>
  
  <pre><code>import UIKit
  
  class ViewController: UIViewController {
  
  @IBOutlet weak var input1: UITextField!
  @IBOutlet weak var input2: UITextField!
  @IBOutlet weak var input3: UITextField!
  @IBOutlet weak var output4: UILabel!
  
  override func viewDidLoad() {
      super.viewDidLoad()
      // Do any additional setup after loading the view, typically from a nib.
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  
  
  
  @IBAction func buttonPressed(sender: UIButton) {
  
      var one = input1.text.toInt()
      var two = input2.text.toInt()
      var three = input3.text.toInt()!
      var total : String!
  
      if sender.tag == 1{
          if three &lt; 12{
              total = ("\(one) \(two) a child")
          } else if three &gt;= 13 &amp;&amp; &lt;=19 {
  </code></pre>
  
  <blockquote>
    <p>in the above line I get the error '&lt;=' is not a prefix unary operator
    I tried giving space removing spaces but nothing works, the same error goes to the next  else if statement too..
     any help appreciated..</p>
  </blockquote>
  
  <pre><code>            total = ("\(one) \(two) a teenager")
          } else if three &gt; 19 &amp;&amp; &lt;=29{
              total = ("\(one) \(two) a young man")
          } else if three &gt;= 30 &amp;&amp; &lt;=49{
              total = ("\(one) \(two) a middle aged man")
          } else if three &gt;= 50 &amp;&amp; &lt;=64{
              total = ("\(one) \(two) an experienced man")
          } else if three &gt;= 65{
              total = ("\(one) \(two) a senior man")
          }
  
      } else{
          total = ("You are correct")
      }
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Can anyone help me resolving the occurring error?</p>