Solved

boolean variables in C#

Posted on 2004-10-07
1
230 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 50 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A short article about problems I had with the new location API and permissions in Marshmallow
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.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now