Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
titleAvailability

This routine is available starting with SIL Engineā„¢ 1.0.

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=isNull+-+15488773
widthauto

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

isNull(variable)

Package

Alias

Pkg Usage

Description

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

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

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

variable

Any

Yes

Value you want to test. Value argument can be a string or a variable of any type.

Return

...

Type

boolean Boolean (true/false)

Examples

Example 1

...

Checks whether the assignee was selected for a

...

ticket.

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

Example 2

...

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

Code Block
if(isNull(timeSpent)assignee)) {
  assignee = reporter;
}

You can also use the hasInput routine function 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.

Notes

Note

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

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "basic_routines"routine" and space = currentSpace ( )
labelsbasicarray_routines