Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

boolean variables in C#

Posted on 2004-10-07
1
Medium Priority
?
240 Views
Last Modified: 2011-10-03
Please provide the syntax for and'ing and or'ing boolean variables in c#.

Thanks
0
Comment
Question by:RosanneParnell
1 Comment
 
LVL 8

Accepted Solution

by:
bramsquad earned 200 total points
ID: 12248821
or --> x | y
and --> x & y

x || y --> y is only evaluated if 'x' is false
x && y --> y is only evaluated if 'x' is true

~b
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Loops Section Overview

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question