How do I check if arguments are called to a vbscript?
<p>I tried using an if statement but I got an error, <code>Subscript out of range</code>, I know why I got the error. How do I check if an argument(s) is called to a vbscript script.</p>

<pre><code>if args.count &gt; -1 then
  exec(args(0)) 'exec is a function that I defined. I know this is working.
  wscript.quit
end if
</code></pre>