<a href="http://www.pmwiki.org/wiki/PmWiki/IncludeOtherPages#includevariable">http://www.pmwiki.org/wiki/PmWiki/IncludeOtherPages#includevariable</a><br clear="all"><a href="http://www.pmwiki.org/wiki/Test/IncludeWithVariable">http://www.pmwiki.org/wiki/Test/IncludeWithVariable</a><div>
<br></div><div><a href="http://www.pmwiki.org/wiki/Test/IncludeWithVariable"></a>It seems that when a variable passed with an include from other pages is not specified in the include directive the variable name itself is left in the text.
</div><div><br></div><div>I suggest that the expected behaviour would be that the variable should have the value of null or empty.</div><div><br></div><div>Please see the test example above. What do you think?</div><div>
<br></div><div>thanks</div><div><br></div><div>Simon</div><div><br></div><div>PS My use case is</div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre-wrap; ">(:if equal &quot;{$$File}&quot; &quot;&quot;:)Photo(:else:){(ucfirst &quot;{$$File}&quot;)}(:ifend:)</span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre-wrap; ">I also tried</span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 13px; white-space: pre-wrap; ">(:if equal {$$File}:)Photo(:else:){(ucfirst &quot;{$$File}&quot;)}(:ifend:)</span></div>