title: How to give a function an argument in batch
body: <p>How can I give a function an argument in batch? For example take a simple little hello world script:</p>
  
  <pre><code>:hello
      @echo Hello World!
  
  goto :hello
  </code></pre>
  
  <p>How can I take this "function" an argument and output "world!" if nothing is given? For example: </p>
  
  <pre><code>:hello &lt;name&gt;
      if %name%=="" (
          @echo Hello World!
      ) else (
          @echo Hello %name%!
      )
  </code></pre>
  
  <p>Is there a correct way to give a function arguments in a batch script? I've done some research and the only thing I can really find is passing files and <code>ARGV</code> to the script</p>