0

is it possible to have more than one ELSE in the CASE WHEN statement in the Expression builder in QGIS?

For example:

CASE WHEN "population" > 5000
THEN 'big'
ELIF WHEN "population" > 1500
THEN 'medium'
ELSE 'small'
END

I know that this piece of code is totally wrong, but I'm not able to find an equivalent of ELIF..

Some ideas? Am I looking at the problem in the wrong way?!

SS_Rebelious
  • 5,621
  • 3
  • 27
  • 62
matteo
  • 3,304
  • 1
  • 23
  • 47

1 Answers1

0

Ok guys, I'm sorry..

The equivalent of ELIF is WHEN.

This question has been already answered here.

Sorry for the noise.

matteo
  • 3,304
  • 1
  • 23
  • 47