Closed Shivamyadav2512 closed 3 years ago
Say i have col0 of integers ranging 0 - 100 I want col1 to be Great, Good, bad and so on based on the value of col0 - say > 60 is Great.
Great
Good
bad
I found this col0 > 60 ? 'Great' : 'Need to another condition here' how can i add more condition in it for rest of the ranges?
col0 > 60 ? 'Great' : 'Need to another condition here'
Hello,
You can do like this: col0 > 60 ? 'Great' : (col0 > 40 ? 'Good' : 'Bad')
col0 > 60 ? 'Great' : (col0 > 40 ? 'Good' : 'Bad')
Thank you @fbaligand
Say i have col0 of integers ranging 0 - 100 I want col1 to be
Great
,Good
,bad
and so on based on the value of col0 - say > 60 isGreat
.I found this
col0 > 60 ? 'Great' : 'Need to another condition here'
how can i add more condition in it for rest of the ranges?