Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Server Built-In Services | String Folder | Summary of Elements in this Folder | pub.string:isNullOrBlank
 
pub.string:isNullOrBlank
WmPublic. Deprecated - Use pub.string:isNullEmptyOrWhitespace.
Checks a string to determine if it has a null or empty value.
Input Parameters
inString
String Optional. String to be checked.
ifPresent
Boolean Optional.
*If the value is set to true, the service checks whether inString is present or not, and only then proceeds with validation of the input.
*If the value is set to false, the service throws an exception when inString is absent. Else, the service proceeds to validate the input.
Output Parameters
isNullorBlank
String Indicates whether or not inString has a null or empty value.
*true indicates that inString has either a null value or an empty value.
*false indicates that inString contains a value that is not null or not empty.
Examples:
Service with inString = " \t\n\r\n" and ifPresent = true, returnstrue
Service with inString=" \t\n\r\n" and ifPresent = false, returnstrue
Service with inString = "abcd" and ifPresent = true, returns false
Service with inString = "abcd" and ifPresent = false, returns false
Service with ifPresent = true, returns true
Service with ifPresent = false, throws an exception.