2006 IR Open Dicussion Posted August 27, 2006 Share Posted August 27, 2006 By: Aggelos - v_aggelos Conditionals in Jasper 2006-07-18 15:22Sombody knows how can i show a field according to a type ie: if type is 1 show field X else if type is 2 show field Y... Thanks, By: dreporter - dreporter RE: Conditionals in Jasper 2006-07-19 14:58Add a variable and in the print when expression type something like following: $F{TYPE}==1? "X":"Y" You can play around with this syntax to add multiple if then else statements. Hope this helps. By: Aggelos - v_aggelos RE: Conditionals in Jasper 2006-07-21 08:35it helps a lot, Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now