Originally posted by mlewis



Not true!

Try this:

If a = "Hello" Then
MsgBox "hi"
Else
MsgBox "Bye"
End if



And then try:

Dim a
a = "goobl"
IIf a = "Hello", MsgBox("Hi"), MsgBox("Bye")


OOPS!
well
i'm not sure but i think that this will do it right
VB Code:
  1. Msgbox Iif(A= "Hello, "Hii" , "Bye")
what i know about Iif (i just knew it 3 minutes ago) is that it returns the first value given if the condition is tru and the second if none so that code should do it right