If

  • Scroll to top of this topic Scroll to Top of Page

  • Print the current topic Print Topic

  • No expanding elements on this page Show/Hide Expanders

If(Boolean_Value, If_True_Result, If_False_Result). If uses Boolean_Value to determine whether If_True_Result or If_False_Result is returned as a result. If Boolean_Value is true, If_True_Result returned; if Boolean_Value is false, If_False_Result is returned. Only “Boolean_Value”, constant expressions, and the result that is returned will be evaluated. The types of If_True_Result and If_False_Result must be the same but they can be of any type. The type that is returned will be the same as the type of If_True_Result and If_False_Result.