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.
Synonyms / Sinônimos
conditional operatorternary operatorconditional expressioninline conditional
Antonyms / Antônimos
unary expressionbinary expression

Regional Variations

General Brazilian
expressão ternária
Standard technical term used in programming education and documentation
Portugal
expressão ternária
Same as Brazilian Portuguese; used in technical contexts
USA Tech Industry
ternary expression
Commonly used in code reviews and programming discussions

Related Words

conditional statementif-else statementboolean logicoperator precedenceternary operatorsyntax
Look up more words on Fala2Me
The free English-Portuguese dictionary with real Brazilian accents, NYC slang, conjugator and more
Open Fala2Me →