{"json_modified": "2016-07-28T15:42:01.406861", "uuid": "3d61715b-8f74-4a0d-9d6f-3eb5b58961e9", "title": "Operador condicional (ternario)", "url": "/es/docs/Web/JavaScript/Referencia/Operadores/Conditional_Operator", "tags": ["Operador", "JavaScript"], "translations": [{"uuid": "23c64297-218d-4a33-816f-8f0c42165557", "title": "Conditional (ternary) Operator", "url": "/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator", "tags": ["operator", "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-11-03T10:41:43", "review_tags": []}, {"uuid": "f1a337b2-ba97-4c01-83e6-60fdf7e9f380", "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": []}, {"uuid": "89e87290-b79a-445b-9827-a9891e084bd4", "title": "L'op\u00e9rateur conditionnel", "url": "/fr/docs/Web/JavaScript/Reference/Op%C3%A9rateurs/L_op%C3%A9rateur_conditionnel", "tags": ["Op\u00e9rateur", "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 la d\u00e9claration de\u00a0Instructions/if...else
.", "localization_tags": [], "locale": "fr", "last_edit": "2015-11-03T12:29:22", "review_tags": []}, {"uuid": "c21af19d-f2d0-424d-9c23-94e86ef6b614", "title": "\u6761\u4ef6 (\u4e09\u9805) \u6f14\u7b97\u5b50", "url": "/ja/docs/JavaScript/Reference/Operators/Conditional_Operator", "tags": ["operator", "Operator", "JavaScript"], "summary": "\u6761\u4ef6 (\u4e09\u9805) \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": "2016-03-17T07:47:19", "review_tags": []}, {"uuid": "df41d1ba-f920-44ec-9f8a-3e9e184c4927", "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": []}, {"uuid": "07f3ea0b-4ce1-46ea-b37b-2cabc04ff44e", "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"]}, {"uuid": "1c765544-5431-417d-bb03-7610218ee645", "title": "\u6761\u4ef6\u8fd0\u7b97\u7b26", "url": "/zh-CN/docs/Web/JavaScript/Reference/Operators/Conditional_Operator", "tags": ["\u64cd\u4f5c\u7b26", "\u4e09\u5143", "JavaScript"], "summary": "\u6761\u4ef6\uff08\u4e09\u5143\uff09\u8fd0\u7b97\u7b26\u662f JavaScript\u00a0\u4ec5\u6709\u7684\u4f7f\u7528\u4e09\u4e2a\u64cd\u4f5c\u6570\u7684\u8fd0\u7b97\u7b26\u3002\u672c\u8fd0\u7b97\u7b26\u7ecf\u5e38\u4f5c\u4e3a\u00a0if\u00a0\u8bed\u53e5\u7684\u7b80\u77ed\u5f62\u5f0f\u6765\u4f7f\u7528\u3002
", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-10-13T22:41:51", "review_tags": []}, {"uuid": "59c0513e-e99b-4da1-be86-77ebb64c5e7e", "title": "\u0423\u0441\u043b\u043e\u0432\u043d\u044b\u0439 (\u0442\u0435\u0440\u043d\u0430\u0440\u043d\u044b\u0439) \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440", "url": "/ru/docs/Web/JavaScript/Reference/Operators/%D0%A3%D1%81%D0%BB%D0%BE%D0%B2%D0%BD%D1%8B%D0%B9_%D0%BE%D0%BF%D0%B5%D1%80%D0%B0%D1%82%D0%BE%D1%80", "tags": [], "summary": "\u0423\u0441\u043b\u043e\u0432\u043d\u044b\u0439 (\u0442\u0435\u0440\u043d\u0430\u0440\u043d\u044b\u0439) \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 - \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0432 JavaScript, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u044e\u0449\u0438\u0439 \u0442\u0440\u0438 \u043e\u043f\u0435\u0440\u0430\u043d\u0434\u0430. \u041e\u043d \u0447\u0430\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0443\u043a\u043e\u0440\u043e\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 if
.", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2015-12-06T06:42:03", "review_tags": []}, {"uuid": "443c9c48-a0de-4d17-a89f-5171da1b4a2f", "title": "\uc0bc\ud56d \uc870\uac74 \uc5f0\uc0b0\uc790", "url": "/ko/docs/Web/JavaScript/Reference/Operators/Conditional_Operator", "tags": [], "summary": "\uc0bc\ud56d \uc870\uac74 \uc5f0\uc0b0\uc790(conditional ternary\u00a0operator)\u00a0\ub294 \uc138 \uac1c\uc758\u00a0\ud53c\uc5f0\uc0b0 \ud568\uc218\ub97c \ucde8\ud560 \uc218 \uc788\ub294 \uc720\uc77c\ud55c\u00a0\uc790\ubc14\uc2a4\ud06c\ub9bd\ud2b8 \uc5f0\uc0b0\uc790\uc774\ub2e4. \uc774 \uc5f0\uc0b0\uc790\ub294\u00a0if
\u00a0\ubb38\uc758 \ucd95\uc57d\ud615\uc73c\ub85c \ube48\ubc88\ud788 \uc0ac\uc6a9\ub41c\ub2e4.", "localization_tags": ["inprogress"], "locale": "ko", "last_edit": "2015-10-11T18:35:49", "review_tags": []}, {"uuid": "94b0ef0c-2ec5-4f62-b8f4-81ffb8cd1daa", "title": "Operatore condizionale (ternary)", "url": "/it/docs/Web/JavaScript/Reference/Operators/Operator_Condizionale", "tags": ["JavaScript Operatore operatore"], "summary": "L'operatore condizionale (ternary) \u00e8\u00a0 l'unico operatore JavaScript che necessit\u00e0 di tre operandi. Questo operatore \u00e8 frequentemente usato al posto del comando if
per la sua sintassi concisa e perch\u00e9 fornisce direttamente un espressione valutabile.", "localization_tags": [], "locale": "it", "last_edit": "2015-12-16T02:14:26", "review_tags": []}, {"uuid": "6117babf-102e-4540-a6e3-e58f4588c9cf", "title": "Bedingter (tern\u00e4rer) Operator", "url": "/de/docs/Web/JavaScript/Reference/Operators/Conditional_Operator", "tags": ["operator", "Operator", "JavaScript"], "summary": "Der bedingte (tern\u00e4re) Operator ist der einzige Operator in JavaScript, welcher drei Operanden annimmt. Er wird h\u00e4ufig genutzt, um if-Anweisungen
abzuk\u00fcrzen.", "localization_tags": [], "locale": "de", "last_edit": "2016-06-17T03:13:22", "review_tags": []}], "modified": "2016-07-28T15:41:58", "label": "Operador condicional (ternario)", "localization_tags": ["inprogress"], "locale": "es", "id": 158471, "last_edit": "2016-07-28T15:41:51", "summary": "Si la\u00a0condici\u00f3n
\u00a0es true
, el operador retorna\u00a0el valor\u00a0de la\u00a0expr1
; de lo contrario, \u00a0devuelve el valor\u00a0de\u00a0expr2
. Por ejemplo, para mostrar un mensaje diferente en\u00a0funci\u00f3n del valor de la variable isMember,
se puede usar esta declaraci\u00f3n:", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Sintaxis", "title": "Sintaxis"}, {"id": "Par\u00e1metros", "title": "Par\u00e1metros"}, {"id": "Descripci\u00f3n", "title": "Descripci\u00f3n"}, {"id": "Especificaciones", "title": "Especificaciones"}, {"id": "Compatibilidad_de_navegadores", "title": "Compatibilidad de navegadores"}, {"id": "V\u00e9ase_tambi\u00e9n", "title": "V\u00e9ase tambi\u00e9n"}], "slug": "Web/JavaScript/Referencia/Operadores/Conditional_Operator", "review_tags": ["editorial"]}