why is this work

Code:
       If !a <> "" Then
           tempname = !a
        Else
            tempname = !b
        End If

but not this???
Code:
       If !a = "" Then
           tempname = !b
        Else
            tempname = !a
        End If
--this return NULL error

Just a bit programming concept... thanks for explaining...