<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div><br></div>hi<div>i'm running into an odd issue with the nested-if recipe, and wondering if there's a fix...</div><div>here's the deal:</div><div><br></div><div>let's say i have a page called Main.TestInclude with the following set of nestedIfs:</div><div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:if0 true:)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:ifA true:)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:if1 true:)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if0,ifA,if1 true</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:else1:)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if0,ifA true if1 false</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:if1end:)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:elseA:)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:if2 true:)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if0,if2 true, ifA false</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:else2:)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if0 true, if2,ifA false</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:if2end:)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:ifAend:)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:else0:)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if0 false</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:if0end:)</div></div><div><br></div><div><br></div><div>if i then include it on another page, say in the WikiSandbox, using (:include UDP.TestInclude:),</div><div>then it works fine, and prints out:</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>if0,ifA,if1 true </div><div><br></div><div>however, if i then stick (:include UDP.TestInclude:) into Site.SiteFooter, and then load any page on the site, it malfunctions and spits out onto the page part of the conditional (i.e. it doesn't execute it all):</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:if1 true:)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if0,ifA,if1 true</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:else1:)</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>if0,ifA true if1 false</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>(:if1end:) </div></div><div><br></div><div><br></div><div>is there a way to correct this?</div><div>thanks,</div><div>adam</div><div><br></div><br><div> <span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>. . .</div><div><br class="khtml-block-placeholder"></div><div><a href="mailto:a@plus1plus1plus.org">a@plus1plus1plus.org</a></div><div>661 373 8679</div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span> </div><br></div></body></html>