G
Guest
I'm trying to check for the presents of null values or null value not being
present. My sample code below:
If EmailAddresses Is Nothing Then
SendMailMessage(EmailAddresses, AlertTitle,
ViolationBody)
End If
The above code works when checking for the presents of a null
value/Nothing/"".
However, I want to check for null not being present ie.
If EmailAddresses not Nothing Then
SendMailMessage(EmailAddresses, AlertTitle,
ViolationBody)
End If
The above code will not compile.
Basically I want to know when nulls are present and not present.
Thanks
present. My sample code below:
If EmailAddresses Is Nothing Then
SendMailMessage(EmailAddresses, AlertTitle,
ViolationBody)
End If
The above code works when checking for the presents of a null
value/Nothing/"".
However, I want to check for null not being present ie.
If EmailAddresses not Nothing Then
SendMailMessage(EmailAddresses, AlertTitle,
ViolationBody)
End If
The above code will not compile.
Basically I want to know when nulls are present and not present.
Thanks