Behavior : Max-min
Author:Rex.Rainbow
- A variable which clamped between maximum and minimum bound.
Download
Actions
Bound
Action:Set maximum bound
- Set maximum bound.
- Max ( number ) : Maximum bound.
Action:Set minimum bound
- Set minimum bound.
- Min ( number ) : Minimum bound.
Value
Action:Set value
- Set value.
- Value ( number ) : Value.
Action:Add to
- Add to the value.
- Value ( number ) : Value to add to this variable.
Action:Subtract from
- Subtract from the value.
- Value ( number ) : Value to subtract from this variable.
Expressions
Bound
Expression:Max
Expression:Min
Value
Expression:Value
Expression:Percentage
- Get percentage of current value in bounds.
Expression:PreValue
Conditions
Bound
Condition:Compare bound
- Compare bound.
- Bound ( Combo ) : Maximum bound or minimum bound to compare.
- Comparison ( cmp ) : Choose the way to compare the current value.
- Value ( number ) : The value to compare the bound to.
Value
Condition:On value changing
- Triggered when value changing.
Condition:Compare value
- Compare the current value.
- Comparison ( cmp ) : Choose the way to compare the current value.
- Value ( number ) : The value to compare the current value to.
Condition:Is value changed
- Return true if value changed.
Condition:Compare delta value
- Compare the delta value which is equal to current value - previous value.
- Comparison ( cmp ) : Choose the way to compare the current value.
- Value ( number ) : The value to compare the delta value to.