{"json_modified": "2015-04-26T06:44:02.459309", "slug": "Web/JavaScript/Referencia/Operadors/Conditional_Operator", "tags": [], "locale": "ca", "title": "Operador Condicional (ternari)", "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 Tern\u00e1rio", "url": "/pt-BR/docs/Web/JavaScript/Reference/Operators/Operador_Condicional", "tags": ["Operadores Condicionais", "JavaScript"], "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
.", "localization_tags": [], "locale": "pt-BR", "last_edit": "2014-12-16T09:57:02", "review_tags": []}], "modified": "2015-04-26T06:43:59", "label": "Operador Condicional (ternari)", "localization_tags": [], "url": "/ca/docs/Web/JavaScript/Referencia/Operadors/Conditional_Operator", "last_edit": "2015-03-09T06:26:23", "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
.", "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 Objectes Standard Array [Translate] ArrayBuffer [Translate] Boolean DataView [Translate] Date Error EvalError [Translate] Float32Array [Translate] Float64Array [Translate] Function [Translate] 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 Math NaN Number Object [Translate] ParallelArray [Translate] Promise [Translate] Proxy [Translate] RangeError [Translate] ReferenceError [Translate] Reflect [Translate] RegExp [Translate] SIMD [Translate] Set [Translate] StopIteration [Translate] String Symbol [Translate] SyntaxError [Translate] TypeError [Translate] TypedArray [Translate] URIError [Translate] Uint16Array [Translate] Uint32Array [Translate] Uint8Array [Translate] Uint8ClampedArray [Translate] WeakMap [Translate] WeakSet [Translate] decodeURI() [Translate] decodeURIComponent() [Translate] encodeURI() [Translate] encodeURIComponent() [Translate] escape() [Translate] eval() [Translate] isFinite() [Translate] isNaN() [Translate] null parseFloat() [Translate] parseInt() [Translate] undefined unescape() [Translate] uneval() [Translate] Expressions & operators Expressions and operators Operadors aritm\u00e8tics Array comprehensions [Translate] Assignment operators Operadors de bits Operador Coma Comparison operators [Translate] Operador Condicional (ternari) Destructuring assignment [Translate] Expression closures [Translate] Generator comprehensions [Translate] Operador d'agrupament Legacy generator function expression [Translate] Operadors L\u00f2gics Object initializer [Translate] Operator precedence [Translate] Property accessors [Translate] Spread operator [Translate] class expression [Translate] Operador delete function expression [Translate] function* expression [Translate] in operator [Translate] instanceof [Translate] new operator [Translate] super this [Translate] typeof L'operador void yield yield* [Translate] Statements & declarations Statements and declarations Legacy generator function [Translate] block break [Translate] class [Translate] const [Translate] continue [Translate] debugger [Translate] do...while [Translate] Buida export [Translate] for for each...in [Translate] for...in [Translate] for...of function function* [Translate] if...else import [Translate] label [Translate] let [Translate] return switch [Translate] throw [Translate] try...catch [Translate] var [Translate] while with [Translate] Functions Functions [Translate] Arguments object [Translate] Arrow functions [Translate] Default parameters [Translate] Method definitions [Translate] Rest parameters [Translate] getter [Translate] setter [Translate] Classes Classes constructor extends [Translate] static 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] ECMAScript 6 support in Mozilla [Translate] 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": "Resum"}, {"id": "Sintaxi", "title": "Sintaxi"}, {"id": "Par.C3.A0metres", "title": "Par\u00e0metres"}, {"id": "Descripci.C3.B3", "title": "Descripci\u00f3"}, {"id": "Especificacions", "title": "Especificacions"}, {"id": "Compatibilitat_amb_navegadors", "title": "Compatibilitat amb navegadors"}, {"id": "See_also", "title": "Vegeu tamb\u00e9"}], "id": 136137, "review_tags": ["technical", "editorial"]}