From 957b2bf1e6d933cc8564efc5103eccde1578c79c Mon Sep 17 00:00:00 2001 From: Tyler Cooper Date: Tue, 19 Aug 2025 11:48:49 -0500 Subject: [PATCH] Update constrain.js --- app/blocks/math/constrain.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/blocks/math/constrain.js b/app/blocks/math/constrain.js index 2715d6c..1c6a308 100644 --- a/app/blocks/math/constrain.js +++ b/app/blocks/math/constrain.js @@ -4,7 +4,7 @@ export default { bytecodeKey: "constrain", name: "Constrain", colour: 120, - description: "Constrain a given number to fall within a given range.", + description: "Keep any number within specified minimum and maximum boundaries. If the input value is below the minimum, it becomes the minimum. If above the maximum, it becomes the maximum. Perfect for ensuring values stay within expected ranges, creating percentage bounds, or limiting user input to acceptable values.", connections: { mode: "value", output: "number", @@ -15,12 +15,12 @@ export default { `, inputs: { VALUE: { - description: "The number to constrain within the specified range limits.", + description: "The number to limit within your specified boundaries. Examples: user input values, calculation results, sensor readings, or any numerical data that might go outside your desired range.", check: "expression", shadow: "io_math_number" }, RANGE: { - description: "The minimum and maximum bounds to limit the value within (values outside this range will be clamped to the nearest boundary).", + description: "The minimum and maximum limits for your value. Examples: (0,100) for percentages, (1,10) for rating scales, (-50,150) for temperature ranges, or any boundaries that make sense for your data. Values outside these limits get automatically adjusted to the nearest boundary.", check: 'range', shadow: { type: "math_range",