I am trying to write it so that the if statement executes if it is not null and not "". I know I can just do && then copy the same thing over and change the null to "" but is there a way to do something like:
!= null && ""
original if statement:
if(msg['component']['section']['entry']['code']['@code'].toString() != null)