[APP][Pro] Better Logic Library - Just some better logic, variable and library management

I’d like to have a calculated variable to be capped at either 0 or 1 depending if the result is less or more than that - if in between it should return the calculated value. I’d like to avoid using multiple ‘Variable greater than 1’ or ‘Variable less than 0’ cards, is there any BLL expression / math.js function I could put into my existing card?