C# if中连续几个条件判断

1.if (条件表达式1 && 条件表达式2)

当条件表达式1为true时

 using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;

 namespace ConsoleApplication1
 {
     class Program
     {
         static void Main(string[] args)
         {
             ;
             ";
             )
             {
                 a = ";
             }
             Console.WriteLine(num);
             Console.ReadKey();
         }
     }
 }

2.if (条件表达式1 && 条件表达式2)

当条件表达式1为false时

 using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;

 namespace ConsoleApplication1
 {
     class Program
     {
         static void Main(string[] args)
         {
             ;
             ";
             )
             {
                 a = ";
             }
             Console.WriteLine(num);
             Console.ReadKey();
         }
     }
 }