IIF condition for Beginners

Sakthi.Singaravel
Posted by Sakthi.Singaravel under C# category on | Points: 40 | Views : 1107
Syntax:

IIF(Condition As Boolean, True_statement, False_Statement)


If the given condition true, executes 'True_statement otherwise executes False_Statement.

Example:

Dim result_str As String = IIf(a > b, "a is big", "b is big")

Comments or Responses

Login to post response