XML BI Publisher IF statement Logical OR syntax in RTF Template


A question came through today: what is the syntax for a logical OR in a BI/XML Publisher IF statement?

The standard BI Publisher “IF” statement doesn’t seem to cut it.

Lets say I want a test:

if (a=1 or a=2)  then output_my_stuff end if

I don’t want to have to repeat output/logic like:

if(a=1 or a=2 or a=3)
then
 tag_should_be_exe
end_if

A solution is to use if statement structure. So we have:

<?if:GRADE=’1′ or GRADE=’2′ or GRADE=’3′ or GRADE=’4′?>

<?end if?>

If it works use it!

Source

About pacesettergraam

A good and realistic person

Posted on May 11, 2016, in Oracle, oracle apps and tagged , , , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: