clamp %x:NUMBER% between %min:NUMBER% and %max:NUMBER% — Expressions

clamp %x:NUMBER% between %min:NUMBER% and %max:NUMBER%
Math1.0.0

Description

Clamps a value between a minimum and maximum.

Examples

set clamped to clamp health between 0 and 20

All Possible Usages (1)

Every distinct way you can write this pattern, with optional groups and choice groups expanded. Placeholders are shown as <name>.

clamp <x> between <min> and <max>

Related (Math)