<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: 12pt">
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">>
Quoting Mike Heins (mike@perusion.com):<BR>> > Quoting Paul Jordan
(paul@gishnetwork.com):<BR>> > > <BR>> > > <BR>> >
> I have a situation where I conditionally serve page
content, alternatively<BR>> > > serving and different
page via an [include]. I realize I can use a bounce,<BR>> >
> but I do this in this particular page so the page name
stays the same and<BR>> > > the user is unaware they
are not seeing what they are supposed to be seeing.<BR>> >
> Donât comment on the âwhat?â, itâs a very odd
situation with a third party<BR>> > > that I have
very limited access to. Simplified:<BR>> > > <BR>> >
> [tmp foo][/tmp]<BR>> > > <BR>> >
> [if scratch foo]<BR>> >
> [include
pages/existingpage.html]<BR>> > > [else]<BR>> >
> <BR>> > > regular page
content<BR>> > > [strip
reparse=0]<BR>> >
>
<!--[if IE]><BR>> >
>
test 1<BR>> >
>
<![endif]--><BR>> > >
[/strip]<BR>> > > <BR>> > > [/else]<BR>>
> > [/if]<BR>> > <BR>> > Why not <BR>>
> <BR>> > <BR>> > [if scratch foo]<BR>>
> [include
pages/existingpage.html]<BR>> > [else]<BR>>
> [include
pages/otherpage.html]<BR>> > [/else]<BR>>
> [/if]<BR>> > <BR>> > ??<BR>> > <BR>>
> Alternatively you could do:<BR>> > <BR>> >
[if scratch foo]<BR>> > [include
pages/existingpage.html]<BR>> > [else]<BR>>
> [tmpn t_content]<BR>>
> regular page content<BR>> >
[strip reparse=0]<BR>> >
<!--[if IE]><BR>> > test 1<BR>>
> <![endif]--><BR>>
> [/strip]<BR>> > [/tmpn]<BR>> > [scratchd
t_content]<BR>> > [/else]<BR>> >
[/if]<BR>> <BR>> And I was wondering about the premise. Actually, the bug
is in the<BR>> finding of the [/if], and the second possibility doesn't work.
And it<BR>> is definitely a bug, if one I don't have a general solution
for.<BR>> <BR>> This works:<BR>> <BR>> [tmpn
IE][if IE][/tmp]<BR>> <BR>> [if scratch
foo]<BR>> [include
pages/existingpage.html]<BR>> [else]<BR>>
<BR>> regular page
content<BR>> [strip
reparse=0]<BR>>
<!--[scratch
IE]><BR>>
test 1<BR>>
<![endif]--><BR>>
[/strip]<BR>> <BR>>
[/else]<BR>> [/if]<BR></DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"><BR>Thanks
Mike and Peter</DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">I
went with Peter’s suggestion because I couldn’t get yours to work (initially)
Mike. Afterward I played with yours and I believe you meant to leave out the
[strip] tags, once I remove those it worked as expected. That makes yours and
Peter’s suggestion very similar, but with yours you can take advantage of any
processing you can do anywhere in the page more easily. I’m not doing any more
processing in this block but thought I’d mention it for the archives.
</DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">Work
around #1</DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">-----------------------------</DIV></DIV>
<DIV>[tmpn IE]</DIV> <!--[scratch
IE]><BR> test
1<BR> <![endif]--><BR>
<DIV>[/tmpn]<BR> <BR>[if scratch
foo]<BR> [include
pages/existingpage.html]<BR>[else]<BR>
regular page content<BR> [scratch
IE]<BR>[/else]<BR>[/if]<BR><BR></DIV>
<DIV>Work around #2</DIV>
<DIV
style="FONT-STYLE: ; DISPLAY: inline; FONT-FAMILY: ; COLOR: ; FONT-SIZE: ; FONT-WEIGHT: ; TEXT-DECORATION: ">-----------------------------</DIV>
<DIV>[tmpn IE][if IE][/tmpn]<BR> <BR>[if scratch
foo]<BR> [include
pages/existingpage.html]<BR>[else]<BR>
regular page
content<BR>
<!--[scratch
IE]><BR>
test 1</DIV>
<DIV>
.... and other ITL
processing...<BR>
<![endif]--><BR>[/else]<BR>[/if]<BR><BR></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">Thank
you again</DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none">Paul</DIV></DIV>
<DIV>
<DIV
style="FONT-STYLE: normal; DISPLAY: inline; FONT-FAMILY: 'Calibri'; COLOR: #000000; FONT-SIZE: small; FONT-WEIGHT: normal; TEXT-DECORATION: none"> </DIV></DIV></DIV></DIV></BODY></HTML>