Functions: Capped Function - Wynntils/Wynntils GitHub Wiki

Capped function

Aliases

None

Description

Returns a capped value from current value and a cap.

Arguments

This function has 2 required arguments.

  • current(Number) → The current value.
  • cap(Number) → The maximum value.

Schematics

CAPPED(<current>;<cap>) → (CappedValue)

Example

CAPPED(1;10)  1/10
⚠️ **GitHub.com Fallback** ⚠️