Count Occurrences
PureCountOccurrencesCounts how many times a value appears in an array.
Type: Pure (no side effects)
Category: Fortuna|Array & Collection
Keywords: array & collection
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Array | TArray<int> | — | Array parameter |
| Value | int | — | Value parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | int | ReturnValue output |
Example Use Cases
Example 1
Count how many of a specific item a player holds.
Example 2
Tally votes for a specific option.