Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » IF-statement in expression databuilder: how?
IF-statement in expression databuilder: how? [message #536908] Mon, 31 May 2010 13:14 Go to next message
Nicola is currently offline NicolaFriend
Messages: 184
Registered: July 2009
Senior Member
Hi,
I need to use an IF-statement inside an expression builder like this:

IF ( dataSetRow["threshold1"] || dataSetRow["threshold2"] ) THEN "*"

I need to show a * if OR-operator between threshold1 and threshold2 is true.

But it seems to me that IF statement are not allowed, or my synthax is
wrong.

Any suggestions, please?

Thank you,
Nicola
Re: IF-statement in expression databuilder: how? [message #536946 is a reply to message #536908] Mon, 31 May 2010 15:46 Go to previous message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 94
Registered: November 2009
Member
The syntax is

if(condition) {
....
} else if(another condition){
....
} else {
....
}

Its javascript, THEN is not a keyword!!
Previous Topic:Issue with Query Accessing Oracle Data
Next Topic:how regroup same elements in same category on chart
Goto Forum:
  


Current Time: Tue Apr 23 12:34:57 GMT 2024

Powered by FUDForum. Page generated in 0.02465 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top