Loading the entire record to only compare a field ...
# suitescript
a
Loading the entire record to only compare a field is not a good approach... it will make ur script slow and also consume more governance points...doing a search would be the best way from my point of view.