---
name: "selectDiarySubject"
type: command
status: ok
groups: ["Briefing"]
arma3_since: "0.50"
locality: {"argument": "local", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/selectDiarySubject
revid: 349165
updated: 2023-11-08T14:49:52Z
---

# selectDiarySubject

*Command · Briefing · Arma 3 v0.50 · introduced in Arma 2 v1.00*

Locality: arguments **local** · effect **local**

## Description

Selects a subject page in the diary. The subject page is selected but the command does not open the map by default, which could be opened with [openMap](../commands/openMap.md) if necessary.

## Syntax

```sqf
player selectDiarySubject subject
```

**Parameters:**

- `player`: [Object](../topics/Object.md) - player
- `subject`: [String](../topics/String.md) - subject name, for example "Diary" (see also Diary).

  > [!NOTE]
  > In order to open a specific record inside a subject one can append `Record#` to the subject name.
  >
  > ```sqf
  > player selectDiarySubject "Diary:Record0"; // selects the first record in the diary subject (from bottom to top)
  > player selectDiarySubject "Diary:Record1"; // selects the second record
  > ```

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if subject was successfully selected

## Examples

### Example 1

```sqf
openMap true;
player selectDiarySubject "Diary";
```

## See also

[processDiaryLink](../commands/processDiaryLink.md) · [createDiaryLink](../commands/createDiaryLink.md) · [createDiarySubject](../commands/createDiarySubject.md) · [diarySubjectExists](../commands/diarySubjectExists.md) · [allDiarySubjects](../commands/allDiarySubjects.md)

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