---
title: "isNull"
canonical: "https://support.appfire.com/space/PSJ/15488773/isNull"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | isNull(variable) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> 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

| 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 (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](https://appfire.atlassian.net/wiki/spaces/PSJ/pages/15485945) 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.


> ⚠️ 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

> Macro (contentbylabel)