I understand that there is an IF-ELSE Statement in XML Publisher RTF Templates, that goes something like below:
<?xdofx:if ELEMENT1='A' then 'The Letter is A' else 'The Letter is not A' end if?>
However, i'm looking to use the IF
statement in showing different data tables depending on the value. Something like the below pseudo code:
IF BUSINESS_GROUP IS BG-A THEN SHOW TABLE with COLUMNS A B and C, IF NOT, then SHOW TABLE with COLUMNS X Y and Z
I was able to do this by using 2 separate IF Statements:
<?xdofx:if BUSINESS_GROUP='A'> SHOW TABLE with COLUMNS A B and C <?end if?>
<?xdofx:if BUSINESS_GROUP!='A'> SHOW TABLE with COLUMNS X Y and Z <?end if?>
I'm hoping that I can just use a statement like <?ELSE?>
but it does not work.
Any tips?