{"json_modified": "2015-04-25T16:18:54.658416", "slug": "Web/JavaScript/Reference/Operators/Operador_Condicional", "tags": ["Operadores Condicionais", "JavaScript"], "locale": "pt-BR", "title": "Operador Condicional Tern\u00e1rio", "translations": [{"title": "Conditional (ternary) Operator", "url": "/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator", "tags": ["Operator", "JavaScript"], "summary": "The conditional (ternary) operator is the only JavaScript operator that takes three operands. This operator is frequently used as a shortcut for the if statement.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-15T05:53:57", "review_tags": []}, {"title": "Operator warunkowy", "url": "/pl/docs/Web/JavaScript/Referencje/Operatory/Operator_warunkowy", "tags": ["JavaScript"], "summary": "Operator warunkowy jest jedynym operatorem w JavaScript, kt\u00f3ry pobiera trzy argumenty. Operator jest cz\u0119sto stosowany jako skr\u00f3cenie instrukcji if.", "localization_tags": ["inprogress"], "locale": "pl", "last_edit": "2015-04-25T03:09:34", "review_tags": []}, {"title": "L'op\u00e9rateur conditionnel", "url": "/fr/docs/Web/JavaScript/Reference/Op%C3%A9rateurs/L_op%C3%A9rateur_conditionnel", "tags": ["R\u00e9f\u00e9rence", "Reference", "R\u00e9ference", "Operator", "JavaScript"], "summary": "L'op\u00e9rateur (ternaire) conditionnel est le seul op\u00e9rateur JavaScript qui comporte trois op\u00e9randes. Cet op\u00e9rateur est fr\u00e9quemment utilis\u00e9 comme raccourci pour remplacer des instructions if...else simples.", "localization_tags": [], "locale": "fr", "last_edit": "2015-04-15T12:05:07", "review_tags": []}, {"title": "\u6761\u4ef6\u6f14\u7b97\u5b50", "url": "/ja/docs/JavaScript/Reference/Operators/Conditional_Operator", "tags": [], "summary": "\u6761\u4ef6\u6f14\u7b97\u5b50\u306f JavaScript \u3067\u306f\u552f\u4e00\u306e\u30013 \u3064\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u3092\u3068\u308b\u6f14\u7b97\u5b50\u3067\u3059\u3002\u3053\u306e\u6f14\u7b97\u5b50\u306f\u3001if \u6587\u306e\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u3068\u3057\u3066\u3088\u304f\u7528\u3044\u3089\u308c\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2015-04-15T07:23:19", "review_tags": []}, {"title": "Operador Condicional (ternari)", "url": "/ca/docs/Web/JavaScript/Referencia/Operadors/Conditional_Operator", "tags": [], "summary": "L'operador condicional (ternari) \u00e9s l'\u00fanic operador de JavaScript que opera amb tres operands. Aquest operador \u00e9s freq\u00fcentment usat com una simplificaci\u00f3 de la sent\u00e8ncia if.", "localization_tags": [], "locale": "ca", "last_edit": "2015-03-09T06:26:23", "review_tags": ["technical", "editorial"]}], "modified": "2015-04-25T16:18:52", "label": "Operador Condicional Tern\u00e1rio", "localization_tags": [], "url": "/pt-BR/docs/Web/JavaScript/Reference/Operators/Operador_Condicional", "last_edit": "2014-12-16T09:57:02", "summary": "O operador condicional (tern\u00e1rio) \u00e9 o \u00fanico operador JavaScript que possue tr\u00eas operandos. Este operador \u00e9 frequentemente usado como um atalho para a instru\u00e7\u00e3o if.", "sections": [{"id": "Quick_Links", "title": "JavaScript Tutorials: JavaScript Guide Introduction Grammar and types Control flow and error handling Loops and iteration Functions Expressions and operators Numbers and dates Text formatting Regular expressions Indexed collections Keyed collections Working with objects Details of the object model Iterators and generators Meta programming Introductory JavaScript basics JavaScript technologies overview Introduction to Object Oriented JavaScript Intermediate A re-introduction to JavaScript JavaScript data structures Equality comparisons and sameness Closures Advanced Inheritance and the prototype chain Strict mode JavaScript typed arrays Memory Management Concurrency model and Event Loop References: Built-in objects Objetos Globais Array ArrayBuffer Boolean [Translate] DataView [Translate] Date Error [Translate] EvalError [Translate] Float32Array [Translate] Float64Array [Translate] Function Generator [Translate] GeneratorFunction [Translate] Infinity Int16Array [Translate] Int32Array [Translate] Int8Array [Translate] InternalError [Translate] Intl [Translate] Intl.Collator [Translate] Intl.DateTimeFormat [Translate] Intl.NumberFormat [Translate] Iterator [Translate] JSON Map [Translate] Math NaN Number Object ParallelArray [Translate] Promise Proxy [Translate] RangeError [Translate] ReferenceError [Translate] Reflect [Translate] RegExp SIMD [Translate] Set StopIteration [Translate] String Symbol SyntaxError [Translate] TypeError [Translate] TypedArray [Translate] URIError [Translate] Uint16Array [Translate] Uint32Array [Translate] Uint8Array [Translate] Uint8ClampedArray [Translate] WeakMap WeakSet [Translate] decodeURI() [Translate] decodeURIComponent() [Translate] encodeURI() [Translate] encodeURIComponent() [Translate] escape() [Translate] eval() isFinite() [Translate] isNaN() null parseFloat() [Translate] parseInt() undefined unescape() [Translate] uneval() [Translate] Expressions & operators Operators Arithmetic operators [Translate] Array comprehensions Assignment operators [Translate] Bitwise operators [Translate] Operador V\u00edrgula Comparison operators [Translate] Operador Condicional Tern\u00e1rio Destructuring assignment [Translate] Expression closures [Translate] Generator comprehensions [Translate] Operador de Agrupamento Legacy generator function expression [Translate] Operadores L\u00f3gicos Object initializer [Translate] Preced\u00eancia de Operadores Property accessors [Translate] Spread operator [Translate] class expression [Translate] delete operator [Translate] function expression [Translate] function* expression [Translate] in operator [Translate] instanceof new operator [Translate] super [Translate] this [Translate] typeof void operator [Translate] yield [Translate] yield* [Translate] Statements & declarations Statements Legacy generator function [Translate] block [Translate] break class [Translate] const continue [Translate] debugger [Translate] do...while empty [Translate] export [Translate] for [Translate] for each...in [Translate] for...in [Translate] for...of [Translate] function [Translate] function* if...else [Translate] import [Translate] label (Etiqueta) let return [Translate] switch throw [Translate] try...catch var while [Translate] with [Translate] Functions Functions Arguments object [Translate] Arrow functions Default parameters [Translate] Method definitions [Translate] Rest parameters [Translate] getter [Translate] setter [Translate] Classes Classes [Translate] constructor [Translate] extends [Translate] static [Translate] Misc Lexical grammar JavaScript data structures Enumerability and ownership of properties Iteration protocols Strict mode Transitioning to strict mode Template strings Deprecated features New in JavaScript New in JavaScript [Translate] ECMAScript 5 support in Mozilla [Translate] Suporte ao ECMAScript 6 na Mozilla ECMAScript 7 support in Mozilla [Translate] Firefox JavaScript changelog [Translate] New in JavaScript 1.1 [Translate] New in JavaScript 1.2 [Translate] New in JavaScript 1.3 [Translate] New in JavaScript 1.4 [Translate] New in JavaScript 1.5 [Translate] New in JavaScript 1.6 [Translate] New in JavaScript 1.7 [Translate] New in JavaScript 1.8 [Translate] New in JavaScript 1.8.1 [Translate] New in JavaScript 1.8.5 [Translate] Documentation: Useful lists All pages index Methods index Properties index Pages tagged \"JavaScript\" Contribute JavaScript doc status The MDN project"}, {"id": "Summary", "title": "Sum\u00e1rio"}, {"id": "Sintaxe", "title": "Sintaxe"}, {"id": "Par.C3.A2metros", "title": "Par\u00e2metros"}, {"id": "Descri.C3.A7.C3.A3o", "title": "Descri\u00e7\u00e3o"}, {"id": "Especifica.C3.A7.C3.B5es", "title": "Especifica\u00e7\u00f5es"}, {"id": "Compatibilidade_dos_navegadores_(browser)", "title": "Compatibilidade dos navegadores (browser)"}, {"id": "See_also", "title": "Veja tamb\u00e9m"}], "id": 125793, "review_tags": []}