I want to label my feature as follows:
when ADRESSTATUS = Gehistoreeerd -> No label
when BUSNUMMER = Null --> Huinummer
When BUSNUMMER is not NULL --> Huisnumer underlined
I keep getting an 'invalid expression'
Can anyone see what's wrong here? Is there a beter way tot do this?
Solved! Go to Solution.
tl;dr:
return When(
Adresstatus == "Gehistoreerd", null,
IsEmpty(Busnummer), Huisnummer,
!IsEmpty(Busnummer), `<UND>${Huisnummer}</UND>`,
"Default value"
)
A few pointers:
You are missing a ')' at the end of line 5.
I don't see where I have to put it:
if (!IsEmpty(Busnummer)) {return + Huisnummer};
tl;dr:
return When(
Adresstatus == "Gehistoreerd", null,
IsEmpty(Busnummer), Huisnummer,
!IsEmpty(Busnummer), `<UND>${Huisnummer}</UND>`,
"Default value"
)
A few pointers:
Thank you, Johannes!