×

Clamp Number

iOS 15 +

Notes

Clamps the input number to above or equal to the given minimum number and below or equal to the given maximum number.

Syntax

clampNumber(number: <#Double#>, minimum: <#Double#>, maximum: <#Double#>)

Example

clampNumber(number: ShortcutInput, minimum: 40, maximum: 42)