// do this for both the dependency property as well as the item's criterion property
var val = base.MY_PROPERTY;
return val ?? "NULL"; // this is the same as as saying, 'If the value is not null, use it. Else, use whatever I wrote after the "??" operator'
</source>