Download presentation
Presentation is loading. Please wait.
Published bySuzan Mills Modified over 9 years ago
1
Visual Basic CDA College Limassol Campus COM123 Visual Basic Programming Semester C Lecture:Pelekanou Olga Week 4: Understand and implement Decisions
2
Objectives Describe mathematical, logical, and comparison operators. Use arithmetic, logical, and comparison operators to create formulas and evaluate conditions.
3
3 Using Conditional Expressions What Are Conditional Expressions? How to Use Arithmetic Operators How to Use Comparison Operators How to Use Logical Operators How to Combine Comparison and Logical Operators
4
Using Conditional Expressions When you write applications in Microsoft Visual Basic.NET, you need to write expressions that the computer can evaluate. Expressions that evaluate to True or False are called conditional expressions. This lesson explains how to build conditional expressions by using basic arithmetic, comparison, and logical operators. 4
5
What Are Conditional Expressions?
6
Test Conditions
7
Examples of conditional expressions
8
How to Use Arithmetic Operations
9
Arithmetic Operators
10
Syntax
11
How to Use Comparison Operators
12
Boolean Values
13
Comparison operators
14
Syntax 14
15
Example of using comparison operators 15
16
Example of Comparing Strings 16
17
How to Use Logical Operators 17
18
Logical Operators 18
19
Logical Operators 19
20
Syntax. Examples of Logical Operators. 20
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.