---
url: /flow/guide/scripting-reference/classes/data-set/dataset.ismaster.md
---

# Dataset.IsMaster

## Declaration

`property IsMaster: boolean;`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  if DATASET.IsDetail then
LogInfo('This dataset is a child of another dataset');
end;
```

## Description

Returns True if this dataset is **not** a child of another dataset. It does not mean that the dataset has child datasets - check [Dataset.HasDetail](/flow/guide/scripting-reference/classes/data-set/dataset.hasdetail) for this. IsMaster and [Dataset.IsDetail](/flow/guide/scripting-reference/classes/data-set/dataset.isdetail) are mutually exclusive - if one is True the other is False.
