conditional logic - with an expression