I’d like to check whether a value is in a range and then return a color accordingly. This is the first of many if statements:
if(range.between(0,100).contains(value)){
c = #1a1334;
}
else if(Range.between(101,200).contains(value)){
c = #26294a;
}
else if{…}
It says “Cannot find anything named “Range””, so I suppose this function does not exist. What are alternatives?
Thanks!