Jump to content
We've recently updated our Privacy Statement, available here ×

Nested if statement.


DawnW

Recommended Posts

Good Day!!

I am looking for help with syntax. I am using Jaspersoft Studio 6.11. I am converting a report from crystal reports to Jaspersoft Studio. I have found many nested if statements but non that follow this format. Please help and Thx in advance. 

CR code:

if {bnch_wrnt_law205.expression:37} = "LAW743p"
then
    if IsNull ({bnch_wrnt_law205.expression:24}) or
        {bnch_wrnt_law205.expression:24} = '' or
        {bnch_wrnt_law205.expression:24} = " "
    then
        " "
    else
    if IsNull ({bnch_wrnt_law205.expression:25}) or
        {bnch_wrnt_law205.expression:25} = '' or
        {bnch_wrnt_law205.expression:25} = " "
    then
        " "
    else
        {bnch_wrnt_law205.expression:26} + " " +
        {bnch_wrnt_law205.expression:27} + " " +
        {@Zipcode}
else
    " ";

 

I need to follow that format with Jaspersoft studio. 

Thanks

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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