DEV Community

Tony.Rese5
Tony.Rese5

Posted on

Conditonals & Operators

1) What is a conditional?

A- The conditional is used to make decisions in your code using, if, else if, and else. 

2) What is a logical operator?

A- An operator is a special symbol or phrase that you use to check, change, or combine values.

3) Which are the most common logical operators?

A- Logical operators modify or combine the Boolean logic values true and false. Swift supports the three standard logical operators found in C-based languages: 

Logical NOT (!a), Logical AND (a && b), Logical OR (a || b)

Top comments (0)