# int Settlement::GetSentry()

[Family: Settlement](/imperivm/en/CKS/familias/settlement/)

## Exact signature

```text
int Settlement::GetSentry()
```

## Description

GetSentry calls [field] with field [field] minus one when that field is signed positive, returning integer one; otherwise it returns zero.

## Parameters and return type

**Return type:** `int`

The member is called on an object. Its receiver is not repeated among this signature’s arguments.

This signature takes no additional arguments.

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-82130c44c7bb4b.md)
- [JSON](/imperivm/CKS/api/entries/api-82130c44c7bb4b?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
