Glossary for C#: boolean
Learn C# (C sharp) in FREE step-by-step lessons.
&: A single ampersand is string concatenation, or bitwise AND, a double ampersand is the Boolean AND (Lesson:
Boolean Expressions in C#)
=: A single = is assignment operator, two == is Boolean operator. (Lesson:
Boolean Expressions in C#)
?: The conditional operator: ?(Lesson:
Boolean Expressions in C#)
   
The ? can be used for very simple Boolean expressions in place of if/else code |: A double || (pipe) is the Boolean OR, a single | is bitwise OR (Lesson:
Boolean Expressions in C#)
ampersand: A double ampersand is the Boolean AND, a single ampersand is string concatenation, or bitwise AND (Lesson:
Boolean Expressions in C#)
and or: AND && And OR ||(Lesson:
Boolean Expressions in C#)
   
&& means AND, || means ORand or maze: Rats in a maze(Lesson:
Boolean Expressions in C#)
   
A few problems to solve using && and ||boolean: Boolean values can only have values of true or false. (Lesson:
Boolean Expressions in C#)
Boolean: left or right: Left or Right?(Lesson:
Boolean Expressions in C#)
   
On mouse move determine if the mouse is on left or right of formBoolean: top or bottom: Top or bottom?(Lesson:
Boolean Expressions in C#)
   
On mouse move determine if the mouse is on top or bottom of formboolean and or drill: Drill on Boolean(Lesson:
Boolean Expressions in C#)
   
Drill to test your understandingboolean expressions: Boolean Expressions(Lesson:
Boolean Expressions in C#)
   
A Boolean expression is one that can be evaluated to true or falseboolean middle or side: Middle or Side(Lesson:
Boolean Expressions in C#)
   
Determine if mouse is on the side or middleboolean reference: Microsoft Reference: Boolean expressions(Lesson:
Boolean Expressions in C#)
   
C# if/else, conditional operators, OR ||, AND &&, switch/caseboolean variables: Boolean Variables and Properties(Lesson:
Boolean Expressions in C#)
   
Boolean values do not need to be compared to anythingcase, switch: switch/case(Lesson:
Boolean Expressions in C#)
   
switch/case to show seasonconditional operator: The conditional operator: ?(Lesson:
Boolean Expressions in C#)
   
The ? can be used for very simple Boolean expressions in place of if/else codeif: if Statements(Lesson:
Boolean Expressions in C#)
   
An if statement executes a group of statements only if certain conditions are trueif else, nested: Letter Grade(Lesson:
Boolean Expressions in C#)
   
Nested if/else to find letter gradeif else, nested BMI Risk: BMI: Body Mass Index(Lesson:
Boolean Expressions in C#)
   
Nested if/else to find BMI Riskmouse move event: Adding the Mouse Move Event(Lesson:
Boolean Expressions in C#)
   
Shows the X and Y positions when the mouse moves on the formnested if else: Letter Grade(Lesson:
Boolean Expressions in C#)
   
Nested if/else to find letter gradenested if else BMI Risk: BMI: Body Mass Index(Lesson:
Boolean Expressions in C#)
   
Nested if/else to find BMI Risknumbers, parsing text: Getting Numbers from Text Box(Lesson:
Boolean Expressions in C#)
   
Numeric values in a text box must be parsed.question mark: The conditional operator: ?(Lesson:
Boolean Expressions in C#)
   
The ? can be used for very simple Boolean expressions in place of if/else coderadioButton app: buffet: A buffet restaurant part 1: Adding radio buttons(Lesson:
Boolean Expressions in C#)
   
A restaurant charges different prices for breakfast, lunch and dinner, dicounts.radioButton app: buffet2: A buffet restaurant part 2: Adding code for radio buttons and check boxes(Lesson:
Boolean Expressions in C#)
   
Radio buttons and check boxes have a Boolean property checkedrelational operator: Relational Operator (Lesson:
Boolean Expressions in C#)
   
Relational operators are the ones that are used to compare two values: < (less than), > (greater than), == (equal), != (not equal), <= (less than or equal), >= (greater than of equal)scrolling label: Scrolling(Lesson:
Boolean Expressions in C#)
   
Scrolls a label across the form on the Timer eventswitch case: switch/case(Lesson:
Boolean Expressions in C#)
   
switch/case to show seasonFull Glossary