{"json_modified": "2015-04-26T06:30:57.292729", "slug": "Web/JavaScript/Referencia/Sentencies/if...else", "tags": [], "locale": "ca", "title": "if...else", "translations": [{"title": "if...else", "url": "/es/docs/Web/JavaScript/Referencia/Sentencias/if...else", "tags": ["Statement", "JavaScript"], "summary": "Ejecuta una sentencia si una condici\u00f3n espec\u00edficada es evaluada como verdadera. Si la condici\u00f3n es evaluada como falsa, otra sentencia puede ser ejecutada.", "localization_tags": [], "locale": "es", "last_edit": "2014-11-19T12:01:56", "review_tags": []}, {"title": "if...else", "url": "/en-US/docs/Web/JavaScript/Reference/Statements/if...else", "tags": ["Statement", "JavaScript"], "summary": "The if statement executes a statement if a specified condition is true. If the condition is false, another statement can be executed.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-12T05:34:04", "review_tags": []}, {"title": "if...else", "url": "/ja/docs/Web/JavaScript/Reference/Statements/if...else", "tags": [], "summary": "\u6307\u5b9a\u3055\u308c\u305f\u6761\u4ef6\u304c true \u306a\u3089\u6587\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u6761\u4ef6\u304c false \u306a\u3089\u3001\u3082\u3046\u4e00\u65b9\u306e\u6587\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2015-04-17T00:53:24", "review_tags": []}, {"title": "if...else", "url": "/pl/docs/Web/JavaScript/Referencje/Polecenia/if...else", "tags": ["Dokumentacja_JavaScript", "JavaScript", "Dokumentacje", "Wszystkie_kategorie"], "summary": "", "localization_tags": [], "locale": "pl", "last_edit": "2014-05-31T00:08:19", "review_tags": []}, {"title": "if...else", "url": "/fr/docs/Web/JavaScript/Reference/Instructions/if...else", "tags": ["R\u00e9ference", "R\u00e9f\u00e9rence", "Reference", "Statement", "JavaScript"], "summary": "L'instruction if ex\u00e9cute une instruction si une condition donn\u00e9e est vraie. Si la condition n'est pas v\u00e9rifi\u00e9e, il est possible d'utiliser une autre instruction.", "localization_tags": [], "locale": "fr", "last_edit": "2015-04-13T12:59:43", "review_tags": []}, {"title": "if...else", "url": "/de/docs/Web/JavaScript/Reference/Statements/if...else", "tags": ["Statement", "JavaScript"], "summary": "Die if-Anweisung f\u00fchrt Anweisungen aus, wenn eine bestimmte Bedingung aus wahr (true) ausgewertet werden kann. Wenn die Bedingung nicht wahr ist (false), kann eine andere Anweisung ausgef\u00fchrt werden.", "localization_tags": [], "locale": "de", "last_edit": "2015-01-20T05:03:48", "review_tags": []}, {"title": "if...else", "url": "/zh-CN/docs/Web/JavaScript/Reference/Statements/if...else", "tags": [], "summary": "\u5f53\u6307\u5b9a\u6761\u4ef6\u4e3atrue\u65f6\u4f1a\u6267\u884c\u00a0if \u8bed\u53e5\u00a0\u4f1a\u6267\u884c\u4e00\u6761\u8bed\u53e5.\u5982\u679c\u8be5\u6761\u4ef6\u4e3afalse,\u5219\u6267\u884c\u53e6\u4e00\u6761\u8bed\u53e5.", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-02-02T00:08:40", "review_tags": []}], "modified": "2015-04-26T06:30:54", "label": "if...else", "localization_tags": [], "url": "/ca/docs/Web/JavaScript/Referencia/Sentencies/if...else", "last_edit": "2015-04-26T06:30:30", "summary": "La sent\u00e8ncia if\u00a0executa una sent\u00e8ncia si una condici\u00f3 especificada \u00e9s certa. Si la condici\u00f3 \u00e9s falsa, opcionalment s'executa una declaraci\u00f3 diferent.", "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": "Syntax", "title": "Sintaxi"}, {"id": "Description", "title": "Descripci\u00f3"}, {"id": "Examples", "title": "Exemples"}, {"id": "Example:_Using_if...else", "title": "Exemple: Fer servir if...else"}, {"id": "Exemple.3A_Fer_servir_else_if", "title": "Exemple: Fer servir else if"}, {"id": "Example:_Assignment_within_the_conditional_expression", "title": "Exemple: Assignaci\u00f3 dins l'expressi\u00f3 condicional"}, {"id": "Especificacions", "title": "Especificacions"}, {"id": "Compatibilitat_amb_navegadors", "title": "Compatibilitat amb navegadors"}, {"id": "See_also", "title": "Vegeu tamb\u00e9"}], "id": 145339, "review_tags": ["technical", "editorial"]}