nullToEmptyString

String sutil.nullToEmptyString ( Object object )

Description

Get an object in string format.

Parameters

  • object Object to be returned in string format.

Return Values

Returns an empty string if the value of the object is null; otherwise, returns the value of the toString method of the object.

Change Log

Version Description
5.0 Added for all editions.

Examples

Get String Value of Variable

 // Always Specify Suffix even if not selected
 suffix = sutil.nullToEmptyString( session.getv( "SUFFIX" ) );