Introduction
If Else statements to tell your program to do certain things only when the conditions you set up are true or not true. If else statements check if two things are equal. That is when you use the == operator. That different from the equal sine(=) operator. which you can use to set a value. We have check multiple condition in if else through using "AND" ( && ) or "OR"( || ) operator. See in given below figure.
If else figure with AND operator:

If else figure with OR operator:

Example
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace if_else_statement_in_c_sarp
{
class Program
{
static void Main(string[] args)
{
string id = "abc";


Join the conversation! Your thoughts help the community grow.