title: Problem creating a VBScript function
body: <p>I'm trying to create a simple VBScript script, in this I need a function that takes a file path and returns true if there is a file there, and false if there's nothing.</p>
  
  <p>I'm using the following code:</p>
  
  <pre><code>Function FileThere (FileName As String) As Boolean
  FileThere = (Dir(FileName) &gt; "")
  End Function
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Expected ')'  
  800A03EE  
  Microsoft VBScript compilation error
  </code></pre>
  
  <p>Any idea what's wrong? I've tested it with just those three lines in the file and the error still occurs. </p>