In the example below I am trying to use the TO with a message box. When I assign a name to the "TO" in a message, how can I use it in a IF statement?

If Item.useproperties.find("to").value = "" Then
temp = MsgBox("Enter technician before assign task.")
Assign = MsgBox ("Send mail task is completed")
End if