Range of numbers/values in If - Then Action

Hi Forum,

In an “If - Then”-action, I’m trying to get the following

If variable X is/isn’t “In the range between 1 - 1000”, then…

How do I to describe number-ranges, easier than 1|2|3|… etc.

Thanks and best,
A. P.

This macro should get you started.
Let us know if it works for you, or you have questions.

###MACRO:   Determine if Variable is in Range

~~~ VER: 1.0    2017-09-14 ~~~

Determine if Variable is in Range.kmmacros (5.2 KB)
Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.

Here's the Calculation Field
(DIV__X ≥ DIV__Range[1]) & (DIV__X ≤ DIV__Range[2])


Works like a charm! Thank you very much!

A. P.

1 Like