if statement

[/ɪf ˈsteɪtmənt/]
nounpl: if statements
instrução condicional
1. A programming control structure that executes a block of code only if a specified condition is true
The if statement checks whether the user's age is greater than 18 before granting access.
A instrução condicional verifica se a idade do usuário é maior que 18 antes de conceder acesso.
2. A conditional statement in code that uses the keyword 'if' to test a boolean expression
In this if statement, if the temperature exceeds 30 degrees, the air conditioning turns on automatically.
Nesta instrução condicional, se a temperatura exceder 30 graus, o ar condicionado liga automaticamente.
The term 'if statement' is universally used in programming across Brazil, Portugal, and English-speaking countries. In Brazilian tech education, it's commonly referred to as 'instrução condicional' in formal contexts, but programmers often mix English and Portuguese, saying 'comando if' or simply 'if'. This reflects the global nature of programming, where English terminology dominates even in non-English-speaking countries.
Synonyms / Sinônimos
conditional statementif-then statementconditional blockconditional logic

Regional Variations

General Brazilian
instrução condicional
Standard term used in programming education and documentation
São Paulo
instrução condicional / comando if
Tech hub uses both formal and colloquial terms interchangeably
Portugal
instrução condicional / declaração if
Portuguese uses 'declaração' as an alternative to 'instrução'
General English-speaking
if statement
Native term widely used in all programming communities

Related Words

else statementelse ifconditional logicboolean expressioncontrol flowcondition

Related Idioms & Phrases

if-then-else logic
nested if statements
if condition is met
Look up more words on Fala2Me
The free English-Portuguese dictionary with real Brazilian accents, NYC slang, conjugator and more
Open Fala2Me →