Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7444943
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:41:55+00:00 2026-05-29T11:41:55+00:00

should be ab easy one. I have 3 checkboxes and have a multitude of

  • 0

should be ab easy one. I have 3 checkboxes and have a multitude of conditional statements that should execute based on which checkboxes are entered. In this case I have all 3 “checked”….so none of these statment should run. It’s looks like I formatted them wrong. Let me know what I did wrong…thanx

logger:

 //  form.isOpenLevel() = true
  // form.isPhyCompLevel()  = true
  // form.isFinCompLevel()  = true

These three statements should only execute if 2 out of the 3 are true. At least thats what I was trying to do.

 if ((form.isOpenLevel() == true && form.isPhyCompLevel() == true) && (form.isFinCompLevel() != true));
        {
            paramBean.addFilter(new DetFilterCriteriaBean("MSST_HEADER_DATA_MV.FIN_COMP_DATE","is","NULL"));

        }


        if ((form.isPhyCompLevel() == true && form.isFinCompLevel() == true) && (form.isOpenLevel() != true));
        {
            paramBean.addFilter(new DetFilterCriteriaBean("MSST_HEADER_DATA_MV.PHYS_COMP_DATE","is","NOT NULL"));

        }

        if ((form.isOpenLevel() == true && form.isFinCompLevel() == true) && (form.isPhyCompLevel() != true));
        {
            paramBean.addFilter(new DetFilterCriteriaBean("nvl2(MSST_HEADER_DATA_MV.PHYS_COMP_DATE,MSST_HEADER_DATA_MV.FIN_COMP_DATE,'X')","is","NOT NULL"));

        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T11:41:56+00:00Added an answer on May 29, 2026 at 11:41 am

    First off, the extra paranthesis are redundant:

    ((a && b) && c) 
    

    is equivalent to

    (a && b && c)
    

    Also – “These three statements should only execute if 2 out of the 3 are true” means

    if ( b && c )
    

    should be enough.

    Finally, the semicolons after the if is ending the conditional:

    if ( b && c );
       statement;
    

    is equivalent to

    if ( b && c )
    {
    }
    statement
    

    That’s why your statements always execut.

    Remove the ; after the conditions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should be an easy one. I have a function that traverses a csv
This should be an easy one. I have a variable that I've already declared
This should be any easy one for you. I have an accordion that I'd
This should be an easy one. I have a table like so: <table> <tr>
argh, this should be an easy one. How can I set the directory that
This should be an easy one, but I'm not finding much online: I have
Its late and I probably should sleep on this. Easy one I have 3
Hopefully this should be an easy one, i have a background of a rectangle
this should be an easy one and I really thought that what I was
alright guys, this should be an easy one... I have an int array and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.