Restricting the data value of custom Range

Hi.
There is a custom property (integer datatype).
If values of this property go beyond 100 it should become as 100 and if values, go less than 0 then values should stay at so basically, it's like restricting values within 0 to 100. We have to achieve this using scripting or expression.

Thank you!

Where is this data coming from: a tag, or some type of component like a table or numeric text field?

yes! @justinedwards.jle san.


This is the expression I have used.

See this similar discussion:

I'm going to guess you work with @Watson_Durom? Or is this part of an exam?

Yes! Thank you,