Forum Discussion
Anonymous_
3 years agoFrequent Visitor
IF-ELSE
My Input is like so: I need to define 'd', 'e' and 'f' under a singular category and let everything else remain the same. So, somthing like If input is 'a', 'b' and 'c', then no change else m...
- 3 years ago
BrianConnelly
Resolver III
3 years agoIf statements are good, but dont give you the ability to cleanly expand. I would go with something similiar to Freeman, but as such...
Column =
SWITCH(TRUE()
, IF ( [ColumName] IN {"a","b","c"}, [ColumName]
, "h"
)
You can keep adding rules.....
Column =
SWITCH(TRUE()
, IF ( [ColumName] IN {"a","b","c"}, [ColumName]
, IF ( [ColumName] IN {"e","f"}, "g"
, "h"
)