# int cmdcost_pop()

[Family: Global](/imperivm/en/CKS/familias/global/)

## Exact signature

```text
int cmdcost_pop()
```

## Description

Returns the cached population cost or obtains it from the current script command context.

## Parameters and return type

**Return type:** `int`

This signature takes no additional arguments.

## Read and share

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

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