Hi, I have a simmular problem. In my case I have a database field (integer) lineitemtype. When it is 0 I want to return a string "Artikelen" when it's 1 I want to return a string "Uren" and when it's 2 I want to return a string "Kosten" I have this expression: new java.lang.String($F{lineitemtype} == new Integer(0) ? "Artikelen" : ($F{lineitemtype} == new Integer(1) ? "Uren" : ($F{lineitemtype} == new Integer(2) ? "Kosten" : "other"«») ) ) but the problem is that what the value is it is always returning the string "other" And I'm sure the integer is 0 or 1 or 2, nothing else. What am I doing wrong?? Post edited by: HJK, at: 2007/03/23 09:31