v0.8.10 - allow ternary operator and comparisms for the KD calculation