ternary expression
[ˈtɜːrnəri ɪkˈsprɛʃən]
nounpl: ternary expressions
expressão ternária
1. A conditional operator in programming that takes three operands and returns a value based on a boolean condition; typically written as condition ? valueIfTrue : valueIfFalse
The ternary expression 'age > 18 ? "adult" : "minor"' determines whether someone is legally an adult.
A expressão ternária 'idade > 18 ? "adulto" : "menor"' determina se alguém é legalmente um adulto.
2. In mathematics, an expression or operation involving three elements or operands
A ternary expression in algebra might involve three variables combined with operators.
Uma expressão ternária em álgebra pode envolver três variáveis combinadas com operadores.
This is a technical term primarily used in programming and computer science contexts. It became particularly prominent with the rise of JavaScript and other modern programming languages. The term is used identically in both Brazilian Portuguese and Portugal's technical communities, reflecting the international nature of software development.
Look up more words on Fala2Me
The free English-Portuguese dictionary with real Brazilian accents, NYC slang, conjugator and more
Open Fala2Me →