Try

f(A1=<>,"do this","do something else")

VBA Noob