3.8.5. NULLP & NNULLP

You can use the NULLP and NNULLP functions to check whether storage has been allocated for user-defined scalars. NULLP returns TRUE if storage is not allocated, and NNULLP returns TRUE if storage is allocated. Below are some examples of usage.

 NULLP(T_STORAGE_R_NV(t0, SV_UDSI_G(p1)))
 
 /* NULLP returns TRUE if storage is not allocated for
  user-defined storage variable       */
 
 NNULLP(T_STORAGE_R_NV(t0, SV_UDSI_G(p1)))
 
 /* NNULLP returns TRUE if storage is allocated for
  user-defined storage variable       */
 

Release 18.2 - © ANSYS, Inc. All rights reserved.