---
name: "diaryRecordNull"
type: command
status: ok
groups: ["Briefing", "Variables"]
arma3_since: "2.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/diaryRecordNull
revid: 340843
updated: 2023-05-10T14:37:02Z
---

# diaryRecordNull

*Command · Briefing, Variables · Arma 3 v2.00*

## Description

A non-existent [Diary Record](../topics/Diary_Record.md). To compare non-existent objects use [isNull](../commands/isNull.md) or [isEqualTo](../commands/isEqualTo.md):

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

> [!NOTE]
> Before Arma 3 v2.00, [isNull](../commands/isNull.md) did not work with the diary record type and [diaryRecordNull](../commands/diaryRecordNull.md) did not exist.
> In order to verify a null record, it is possible to create a variable and compare against it:
>
> ```sqf
> private _diaryRecordNull = objNull createDiaryRecord [];
> private _createdRecord = player createDiaryRecord ["Diary", ["Title", "Description"]];
> if (_createdRecord isEqualTo _diaryRecordNull) then { hint "Failed"; };
> ```

## Syntax

```sqf
diaryRecordNull
```

**Returns:** [Diary Record](../topics/Diary_Record.md)

## Examples

### Example 1

```sqf
isNull diaryRecordNull; // true
```

### Example 2

```sqf
isNull (objNull createDiaryRecord ["Diary", ["Title", "Text"]]); // true - objNull cannot take diary records
```

### Example 3

```sqf
str diaryRecordNull; // "No diary record"
```

### Example 4

```sqf
private _diaryRecord = diaryRecordNull;
if (damage player > 0.5) then
{
    _diaryRecord = player createDiaryRecord ["Diary", ["Heal yourself", "Ask a medic"]];
};

if (not isNull _diaryRecord) then { hint "Diary record added."; };
```

## See also

[objNull](../commands/objNull.md) · [controlNull](../commands/controlNull.md) · [displayNull](../commands/displayNull.md) · [grpNull](../commands/grpNull.md) · [locationNull](../commands/locationNull.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 — diaryRecordNull](https://community.bistudio.com/wiki/diaryRecordNull) (revision 340843).</sub>
