if(trackingNum != null){ } I am writing an automation for promoting the Harvest packages using Java code.