On Thu, Sep 17, 2009 at 12:22 AM, adam overton <span dir="ltr">&lt;<a href="mailto:a@plus1plus1plus.org">a@plus1plus1plus.org</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
i was wondering if it&#39;s possible to do nested conditiionals in WikiSh in the form:<br>
<br>
{(wikish if test &quot;blam&quot; == &quot;blammo&quot; || ( test &quot;blee&quot; == &quot;blee&quot; &amp;&amp; test &quot;blech&quot; == &quot;blech&quot; ); then; echo &quot;true&quot;; else; echo &quot;false&quot;; fi; )}<br>

<br>
i would think that it would result in true, but it doesn&#39;t work - i think the parens break the markup<br>
i also tried it with [ ] to no avail<br>
<br>
i know i could probably break it up into two separate if statements, but am wondering if it&#39;s possible to do it in a similar form?<br>
</blockquote><div><br>Unfortunately parentheses have special meaning within a markup expression and, as such, cannot be used as a syntactical device by a recipe such as wikish.<br><br>commands following &amp;&amp; will only be run if the command before the &amp;&amp; results in true.  Commands after || will only be run if the command before the || results in false.  Using this knowledge you can create relatively complex expressions, but I&#39;m afraid parentheses aren&#39;t implemented at all at this point...<br>
<br>Sorry!<br><br>-Peter<br></div></div>