This is a quote from the book "The Virtue Of Selfishness" by Ayn Rand
... Man’s emotional mechanism is like an electronic computer, which his mind has to program — and the programming consists of the values his mind chooses.
read full book
But since the work of ma
n’s mind is not automatic, his values, like all his premises, are the product either of his thinking or of his evasions: man chooses his values by a conscious process of thought — or accepts
them by default, by subconscious associations, on faith, on someone’s authority, by some form of social osmosis or blind imitation. Emotions are produced by man’s premises, held consciously...