title: AutoIt - Return value always 0
body: <p>I wrote a method that can be recursive, but the return value is always 0, even when it has a value as a string on the console: </p>
  
  <pre><code>Func hasItTheThing($s)
  
  $result = StringInStr(...,...)
  local $newstring
  
  $newstring = $s
  
  If NOT $result &gt; 0 Then
  
  ConsoleWrite("newstring = " &amp; $newstring &amp; @CRLF)
  return $newstring
  
  Else
  
  
  $newstring = ;Fix something with the string
  hasItTheThing($newstring)
  
  
  EndIf
  
  
  EndFunc
  </code></pre>