Circular Index
PureCircularIndexWraps an index to stay within array bounds (handles negative indices too).
Type: Pure (no side effects)
Category: Fortuna|Array & Collection
Keywords: array & collection
Inputs
| Name | Type | Default | Description |
|---|---|---|---|
| Index | int | — | Index parameter |
| ArrayLength | int | — | ArrayLength parameter |
Outputs
| Name | Type | Description |
|---|---|---|
| ReturnValue | int | ReturnValue output |
Example Use Cases
Example 1
Implement a circular menu that wraps around.
Example 2
Cycle through weapon slots continuously.