---
name: "locationNull"
type: command
status: ok
groups: ["Locations", "Variables"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/locationNull
revid: 321059
updated: 2022-05-13T12:19:56Z
---

# locationNull

*Command · Locations, Variables · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

A non-existing [Location](../topics/Location.md). To compare non-existent locations use [isNull](../commands/isNull.md) or [isEqualTo](../commands/isEqualTo.md):

```sqf
locationNull == locationNull;            // false
isNull locationNull;                    // true
locationNull isEqualTo locationNull;    // true
```

## Syntax

```sqf
locationNull
```

**Returns:** [Location](../topics/Location.md)

## Examples

### Example 1

```sqf
!isNull locationNull; // false
```

### Example 2

```sqf
str locationNull; // No location
```

### Example 3

```sqf
position locationNull; // [0,0,0]
```

## See also

[controlNull](../commands/controlNull.md) · [displayNull](../commands/displayNull.md) · [grpNull](../commands/grpNull.md) · [objNull](../commands/objNull.md) · [taskNull](../commands/taskNull.md) · [teamMemberNull](../commands/teamMemberNull.md) · [scriptNull](../commands/scriptNull.md) · [configNull](../commands/configNull.md) · [typeName](../commands/typeName.md) · [isNull](../commands/isNull.md)

<sub>Source: [BI Community Wiki — locationNull](https://community.bistudio.com/wiki/locationNull) (revision 321059).</sub>
