Télécharger pour Windows Premium
Publicité
conditional operator
/kən'dɪʃənl 'ɑː pəreɪtər/
/kən'dɪʃənl 'ɒpəreɪtə/
Définition
ternary operator in programming that evaluates a condition  ... Voir plus
operatorul condițional
operator condițional
operatorului condițional
As we will see later, conditional operator is similar to an "if... else..." comparison.
După cum vom vedea mai târziu, operatorul condițional este similar cu o comparație "if... else...".
Then, we used the conditional operator to check if x is greater than y, and output some text if it's True, and some other text if it's False.
Apoi, am folosit operatorul condițional pentru a verifica dacă x este mai mare decât y, și a afișa un text dacă expresia este adevărată, și un alt text, dacă este falsă.
The conditional operator creates an expression that evaluates as one of two expressions depending on a condition.
Operatorul condițional creează o expresie care evaluează ca una din cele două expresii, în funcție de o condiție.
Solution Guidelines: Use bitwise operations and display using conditional operator.
Instrucțiuni: Folosiți operatorii pe biți și afișați rezultatul folosind operatorul condițional.
Conditional operator is a bit harder to explain.
Operatorul condițional este un pic mai greu de explicat.
Finally, lets give a concrete example of using the conditional operator
La final, să luăm un exemplu concret de utilizare a operatorului condițional
Unlike the if statement, the conditional operator cannot omit its "else-branch".
Spre deosebire de declarația "if", în această instrucțiune nu poate fi omisă ramura "else".
<? endif? >- it is the end of the conditional operator, replace it mentally by «The end»
<? endif? >- este finalul operatorului condiţional; poate fi înlocuit mental cu fraza «Sfârşit»
Example 22: Trinary conditional operator The compiler evaluates expression a, if it is true (non-zero) then the value of the entire expression is the value of expression b.
Prima expresie se evaluează şi dacă ea este diferită de zero sau adevărată, rezultatul este valoarea celei de-a doua expresii, altfel rezultatul este valoarea expresiei a treia.
Note that of the second and the third operands of the conditional operator only one is evaluated.
Întotdeauna numai una dintre expresiile a doua şi a treia este evaluată.
Aucun résultat pour cette recherche.
Passez à Premium pour accéder à des millions d’exemples de traduction, enregistrer et apprendre du vocabulaire en illimité, le tout sans publicité.

Synonymes et analogies de "conditional operator" en anglais

Le mot et l’expression du jour
L’image du jour
windmill: structure with sails or blades that rotate in the wind
Découvrir le mot
Publicité

Résultats: 10. Exacts: 10. Temps écoulé: 16 ms.