Skip to end of banner
Go to start of banner

isNull

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Description

Checks if the provided variable is null or has no value associated then returns "true", otherwise returns "false".

Parameters

Return Type

Boolean (true/false)

Examples

Example 1

Checks whether the assignee was selected for a ticket.

if(isNull(assignee)) {
  assignee = reporter;
}

Example 2

The following line checks whether the Time Spent field contains any work logged on the ticket.

if(isNull(assignee)) {
  assignee = reporter;
}

You can also use the hasInput routine to check whether certain fields were filled out during a workflow transition. And among those fields you can also check the work logged in particular.


If isNull returns "true" the variable has no value attached. isNull returns "false" for zero for numeric variables or blank for character/string.


See also

  • No labels