Slobey Posted March 30, 2006 Posted March 30, 2006 Hi, I was wondering if there is a faster shorter way to write a case statement with multiple criteria. For example: case( field_1 = "apple" or field_1 = "pear" or field_1 = "apple" or field_1 = "peach"; "fruit") basically I wan to know if I can type field_1 = all the values for that result in it without having to type field_1 = for each value that will result if fruit. Like: case( field_1 = "apple", "peach", "pear"; "fruit") I am just a lazy typer I guess, but can something like this be done? Thanks in advance
comment Posted March 30, 2006 Posted March 30, 2006 Try: Case ( not IsEmpty ( FilterValues ( field ; "apple¶peach¶pear" ) ) ; "fruit" )
Slobey Posted March 30, 2006 Author Posted March 30, 2006 Awesome, works like a charm, Thanks Comment!
Recommended Posts
This topic is 6865 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now