Just a reminder that what the expression returns will not be the exact color, but rather a string that defines a category. You can put the hex code in if you want, but for all the difference it will make to the actual symbol you may as well put "A" and "B".
var p = !IsEmpty($feature.park)
var f = !IsEmpty($feature.forest)
// case 1
return When(
p && f, 'light pink', // both present
p || f, 'light blue', // one present
''
)
// case 2
return When(
!p && !f, 'light blue', // both NULL
p || f, 'light pink', // either present
''
)
- Josh Carlson
Kendall County GIS