What Does If Statement Mean?

An if statement, in C#, is a programming construct in C# used to selectively execute code statements based on the result of evaluating a Boolean expression. The Boolean expression must return either a true or false value.

Techopedia Explains If Statement

Multiple conditions can be combined in the Boolean expression to be evaluated within the if statement by using the OR operator (||) and/or the AND operator (&&). The other set of corresponding logical operators are | and &. The logical operators && and || produce more efficient code than the other regular ones because the entire expression does not always need to be evaluated. As a result, they are called short-circuit operators.