title: Lua 'end' expected to close 'if'
body: <p>I have this code here in lua</p>
  
  <pre><code>function onMouseDown(event)
      print(event.x, event.y)
      if event.x&gt;160 then
          print("what")
          return 1
          print("whatwhat") 
      else 
          return 0
          print("WhatWhatWhat")
      end
  
  
      fruit:setX(event.x)
      fruit:setY(event.y)
  end
  </code></pre>
  
  <p>But it is moaning that main.lua:59: 'end' expected (to close 'if' at line 56) near 'print' so it is expecting an end at the end of my if below print("whatwhat").
  But I put an end there and it still moans at me if I do that.</p>
  
  <p>I am pretty new to lua and I am a bit confused, I normally program in c#</p>