I am trying to assign a color blue for these values of i: 3,4,22,24
right now my code is as follows
JS(paste0('function(z, i) { return i > 2 && i < 5 || i > 21 && i < 24 ? "blue" : "grey"; }'))
Is there a way to accomplish the same using in operator , something like
JS(paste0('function(z, i) { return i in(3,4,22,23) ? "blue" : "grey"; }'))
Thanks in advance.
inworks.