[ic] Strange query problem - punches through if's
Rick Bragg
lists at gmnet.net
Thu Sep 24 19:32:43 UTC 2009
Hi,
I have the following problem that:
[query
type=list
label=test
prefix=test
list_prefix=test_list
sql=|
SELECT code, title
FROM products
WHERE sku = '5'
LIMIT 0,1
|]
[test_list]
[test-param description]<br>
[tmp test]1[/tmp]
[if scratch test] TEST!
[query
type=list
label=test2
prefix=test2
list_prefix=test2_list
sql=|
SELECT code, title
FROM products
WHERE sku = '15'
|]
[else] TEST2!
[query
type=list
label=test2
prefix=test2
list_prefix=test2_list
sql=|
SELECT code, title
FROM products
WHERE sku = '16'
|]
[/else]
[/if]
[test2_list]
- [test2-param description]<br>
[/test2_list]
[/query]
[/test_list]
[/query]
It seems that the correct query is run, but I am left with a "[/query]"
displayed in my page, and that somehow that second query does get called
even inside the if! I can verify this because if I comment out the
test2 query (and keep the if's) its fine.
Anybody know why?
Thanks
Rick
--
This message has been scanned for viruses and
dangerous content by Green Mountain Network, and is
believed to be clean.
More information about the interchange-users
mailing list