K
kw_uh97
Hello everyone I am programming novice so be gentle. I have an if statement
that I would like to alter. The original If ..Then.. End If:
If Not CBool(vRow("Column1")) Or vRow("Column2") = "Answered" Or
vRow("Column4") = "Approved" Then
Do somthing here
Else
Do something else here
End If
However I would like to add an "And" to one of the Conditions that are
checked together like this:
If Not CBool(vRow("Column1")) Or (vRow("Column2") = "Answered" And
CBool(vRow("Column3"))) Or vRow("Column4") = "Approved" Then
Do somthing here
Else
Do something else here
End If
If anyone can provide the syntax or point in the right direction like a URL
I would really appreaciate it. Thanks in advance for any advice.
kwuh97
that I would like to alter. The original If ..Then.. End If:
If Not CBool(vRow("Column1")) Or vRow("Column2") = "Answered" Or
vRow("Column4") = "Approved" Then
Do somthing here
Else
Do something else here
End If
However I would like to add an "And" to one of the Conditions that are
checked together like this:
If Not CBool(vRow("Column1")) Or (vRow("Column2") = "Answered" And
CBool(vRow("Column3"))) Or vRow("Column4") = "Approved" Then
Do somthing here
Else
Do something else here
End If
If anyone can provide the syntax or point in the right direction like a URL
I would really appreaciate it. Thanks in advance for any advice.
kwuh97