<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Batch file - Page 23 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=batch_file&amp;p=22">1.Previous</a><br />
<a accesskey="3" href="page.php?w=batch_file&amp;p=24">3.Next</a>
</p>
<p>to the variable must also be enclosed in quotes, because the quotes are not special delimiting syntax; these characters represent themselves.</p>

<p><syntaxhighlight lang="dosbatch">IF "%foo%"=="bar" ECHO Equal</syntaxhighlight></p>

<p>The delayed !VARIABLE! expansion available in <a href="page.php?w=Windows_2000">Windows 2000</a> and later may be used to avoid these syntactical errors. In this case, null or multi-word variables do not fail syntactically because the value is expanded after the IF command is parsed:<syntaxhighlight lang="dosbatch">IF !foo!==bar ECHO Equal</syntaxhighlight></p><p>
<a accesskey="1" href="page.php?w=batch_file&amp;p=22">1.Previous</a><br />
<a accesskey="3" href="page.php?w=batch_file&amp;p=24">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
