Availability
This routine is available since katl-commons 1.0 .
Syntax:
isNull(variable)
Description:
Checks if the provided variable is null or has no value associated and returns true. Otherwise returns false.Parameters:
Parameter name | Required | Description |
---|---|---|
variable | Yes | The value that you want tested. The value argument can be a string or a variable of any type. |
Return type:
boolean (true/false)
Example:
if(isNull(assignee)) { assignee = reporter; }
Notes:
If isNull returns true the variable has no value attached. isNull will return false for zero for numeric variables or blank for character/string
See also: