qoolean logic