”— title: ‘QGIS CASE WHEN’ layout: post tags: [] category: Uncategoried — CASE WHEN is the equivalent of the IF function in Excel.

An example of its usage is expression based labelling. Imagine you have a layer showing car parks and a field containing the cost to park. We can label car parks as either cheap or expensive using CASE WHEN. See below

<a href=”“https://gisdriverslicence.files.wordpress.com/2020/09/case-when.png””><img class=”“alignnone size-medium wp-image-12”” src=”“https://gisdriverslicence.files.wordpress.com/2020/09/case-when.png?w=300”” alt=”””” width=”“300”” height=”“92”” /></a><a href=”“https://gisdriverslicence.files.wordpress.com/2020/09/case-when-images.png””><img class=”“alignnone wp-image-10”” src=”“https://gisdriverslicence.files.wordpress.com/2020/09/case-when-images.png?w=300”” alt=”””” width=”“297”” height=”“118”” /></a>”