Jump to content
Changes to the Jaspersoft community edition download ×

Conditionals in Jasper


Recommended Posts

By: Aggelos - v_aggelos

Conditionals in Jasper

2006-07-18 15:22

Sombody 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:58

Add 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:35

it helps a lot,

Thanks

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...