the right way is the second one.
i don't understand what you meant by "break the if".
my advice is to put the "rest" in a section, and include it by {.$rest of the page.}
Well I want to put this at the top of the page so if I request the page:
http : // adress/?query
then it shows one page
else it shows the normal page.
"break the if" well if i put like .. 260 lines of code after the "|" I guess it wont work?
can a section contain other sections? If so your solution should work.
Easiest way would be if it was possible to stop the page after it has load something, like in PHP: die();
for example:
{.if| {.?query.} | print something {.die.} /if.}
(disconnect kills the page before it print something)