Add unless_n and if_n

Note that NaN is regarded as truthy