Page 1 of 1

Clamp value with single combinator

Posted: Thu Feb 19, 2026 3:05 pm
by Tertius
Didn't see it before elsewhere: clamping some value to an upper limit with a single combinator.

[L]=value to clamp
[M]=upper limit




out.mp4
(336.42 KiB) Downloaded 82 times

Re: Clamp value with single combinator

Posted: Tue May 19, 2026 1:34 am
by mechatimer
Very useful for setting train limits!

For other possible applications, you can even go further and clamp the value between a lower and upper bound:
ClampNumber.png
ClampNumber.png (135.39 KiB) Viewed 138 times
Here, I added [N] as the lower limit. Note that N and M have to have different values, otherwise the 'each' signal will output the sum of both of them.