you could probably || them too ... like var temp ...
# suitescript
c
you could probably || them too ... like var temp = xyz.getText() || xyz.getValue()