powered by
Function to check value in leaf from numeric until character
check_value(value, threshold)
is the value in leaf node
in leaf node
TRUE if <= in numeric or %in% in factor