Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

Does && take precedence?

I want to use this simple code:

            if (employeeID == null && yearEligible != null || employeeID != null && yearEligible == null)

because I believe it is the same as:

            if ((employeeID == null && yearEligible != null) || (employeeID != null && yearEligible == null))

is that true?

newbieweb
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial