...
An example blackbox using the value of Lead time (days) could look like this
...
Code Block | ||
---|---|---|
| ||
// Lead time intervals
const intervals = [8, 60]
// Reading lead time from the property
const leadTime = variables.custom.leadTimeExact
if (leadTime === null) return null
return mapInterval(leadTime, intervals[0], intervals[1]) |