DEV Community

Tony.Rese5
Tony.Rese5

Posted on

1 1

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)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →