There are a lot of ways to that, few that pop into my mind are :
initialize variables with empty strings(""). that makes it easy to check it with '=' operator.
another way to go about it would be .Net 'String.IsNullOrEmpty Method' Method.
if you are new to uipath you should consider watching video tutorials and if possible join RPA training