nested if

  • Thread starter Thread starter Nad
  • Start date Start date
N

Nad

Hi ,
Need VB code to check the below condition
If Conditon1 is true Or if Condition2 is true Or if Condition3 is true then
Statment1 Else Statment2.
i.e to check if either of any three condition is true then Statment1
otherwise Statment2.
Regards,
 
hi Nad,
Need VB code to check the below condition
If Conditon1 is true Or if Condition2 is true Or if Condition3 is true then
Statment1 Else Statment2.
i.e to check if either of any three condition is true then Statment1
otherwise Statment2.
You should use F1 more often:

If Condition1 Or Condition2 Or Condition3 Then
Statement1
Else
Statement2
End If

Simply replace ConditionX with your condition expression. Enclose them
into parentheses, if they are more complex.


mfG
--> stefan <--
 
Back
Top