Jump to content
JasperReports Library 7.0 is now available ×

Switch/Case, if, elseif, else


2004 IR Help

Recommended Posts

By: Thorsten Hillebrand - matflasch

Switch/Case, if, elseif, else

2005-04-27 01:57

Hello,

 

How can I use a switch statement? And if, else if, else? Or do I have only 2 possibilities like this...?

$V{PAGE_NUMBER}.intValue() == new nteger(1).intValue() ? "true" : "false"

 

Matflasch

 

 

 

 

By: Thorsten Hillebrand - matflasch

RE: Switch/Case, if, elseif, else

2005-04-27 02:02

Sorry...

I found a way to use more than 2 Values...

 

 

$F{BMBMEN}.intValue() > 10 ? "C:\Jasper\chkChecked.gif" :

$F{BMBMEN}.intValue() <= 10 ? "C:\Jasper\chkUnChecked.gif" :

"C:\Jasper\blank.gif"

 

Matflasch

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...