IIf : IIf « Statements « VB.Net Tutorial






public class Test
   public Shared Sub Main

        Dim intScore As Integer

        intScore = 23

        Console.WriteLine( IIf((intScore < 50), 1, 2) )

   End Sub


End class
1








4.2.IIf
4.2.1.IIf