isNullOrEmptyString
boolean sutil.isNullOrEmptyString ( Object object )
Description
Determine if an object's value is null or empty.
Parameters
- object The object whole value will be tested.
Return Values
Returns true if the value of the object is null or an empty string; otherwise, it returns false.
Change Log
Version |
Description |
5.0 |
Added for all editions. |
Examples
Warning for Empty Variable
// Give warning and stop scrape if variable is empty
if ( sutil.isNullOrEmptyString( session.getv( "NAME" ) ) )
{
session.log( "The NAME variable was blank." );
session.stopScraping();
}