1 2 3 4 5 6 7 8 9 10 11 12
# Single negation — fine not_valid = !value # Direct boolean comparisons — fine active = user.active? == true present = !value.nil? # Boolean method — fine exists = value.present? # Normal arithmetic negation — fine x = -count