I am experiencing a weird problem I've never had before with the toolkit. I have the following in my template:
<sellerId>
{[%- IF (sellerid_root.defined AND sellerid_instance.defined) -%]
[%- sellerid_root -%][%- sellerid_instance -%]
[%- ELSE -%]
[%- seller_id -%]
[%- END -%]}
</sellerId>
If both sellerid_root & sellerid_instance are defined, it properly fills in the values. But if they are not defined, processing of the template dies on the IF line with the error:
undef error - sellerid_root is undefined
How can it be an error to test an undefined thing for definedness ? By definition that's half the cases.