Clamp Value

Description

The Clamp Value behavior restricts a value between a specified minimum and maximum range. If the minimum value is larger than the maximum value, the minimum and maximum values are swapped.

 

Properties

Triggers Immediately

Value

The value to be clamped.

Minimum

The smallest the value can be.

Maximum

The largest the value can be.

 

Outputs

Clamp Value

Outputs the result of the clamp operation.

 

Example 

If your value is 5 and your range is from -2 to 2, the behavior will output 2. If the value is -9, the behavior will output -2. If the value is 1, the behavior will output 1.

 

Related 

Maximum

Minimum

0 Comments

Article is closed for comments.