<!--#if expr="$a = \$test" -->
</PRE>
+<P> If a variable reference needs to be substituted in the middle of a
+ string, it can be done by enclosing the reference in braces,
+ <EM>á la</EM> shell substitution:
+
+<PRE>
+ <!--#set var="Zed" value="${REMOTE_HOST}_${REQUEST_METHOD}" -->
+</PRE>
+
+<P> will result in the <SAMP>Zed</SAMP> variable being set to
+ "<SAMP>X_Y</SAMP>" if <SAMP>REMOTE_HOST</SAMP> is
+ "<SAMP>X</SAMP>" and <SAMP>REQUEST_METHOD</SAMP> is
+ "<SAMP>Y</SAMP>".
+
<P> EXAMPLE: the below example will print "in foo" if the DOCUMENT_URI is
/foo/file.html, "in bar" if it is /bar/file.html and "in neither"
otherwise: