{"json_modified": "2015-04-26T06:44:18.701091", "slug": "Web/JavaScript/Referencia/Operadors/Logical_Operators", "tags": [], "locale": "ca", "title": "Operadors L\u00f2gics", "translations": [{"title": "\u8ad6\u7406\u6f14\u7b97\u5b50", "url": "/ja/docs/Web/JavaScript/Reference/Operators/Logical_Operators", "tags": [], "summary": "\u8ad6\u7406\u6f14\u7b97\u5b50 (Logical operators) \u306f\u3001\u57fa\u672c\u7684\u306b\u771f\u507d\uff08\u8ad6\u7406\uff09\u5024\u3068\u3068\u3082\u306b\u7528\u3044\u3089\u308c\u307e\u3059\u3002\u305d\u306e\u3068\u304d\u306f\u3001\u771f\u507d\u5024\u3092\u8fd4\u3057\u307e\u3059\u3002\u3057\u304b\u3057\u3001&& \u304a\u3088\u3073 || \u6f14\u7b97\u5b50\u306f\u3001\u5b9f\u969b\u306b\u306f\u3001\u6307\u5b9a\u3055\u308c\u305f\u6f14\u7b97\u5bfe\u8c61\u306e\u4e00\u65b9\u3092\u8fd4\u3057\u307e\u3059\u3002\u3067\u3059\u304b\u3089\u3001\u305d\u308c\u3089\u306e\u6f14\u7b97\u5b50\u304c\u3001\u771f\u507d\u5024\u3067\u306f\u306a\u3044\u5024\u3068\u3068\u3082\u306b\u7528\u3044\u3089\u308c\u305f\u5834\u5408\u3001\u771f\u507d\u5024\u3067\u306f\u306a\u3044\u5024\u3092\u8fd4\u3059\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2015-04-15T07:57:54", "review_tags": []}, {"title": "Logical Operators", "url": "/en-US/docs/Web/JavaScript/Reference/Operators/Logical_Operators", "tags": ["Operator", "JavaScript"], "summary": "Logical operators are typically used with Boolean (logical) values. When they are, they return a Boolean value. However, the && and || operators actually return the value of one of the specified operands, so if these operators are used with non-Boolean values, they may return a non-Boolean value.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-11T10:07:43", "review_tags": []}, {"title": "Op\u00e9rateurs logiques", "url": "/fr/docs/Web/JavaScript/Reference/Op%C3%A9rateurs/Op%C3%A9rateurs_logiques", "tags": ["R\u00e9f\u00e9rence", "Reference", "R\u00e9ference", "Operator", "JavaScript"], "summary": "Les op\u00e9rateurs logiques sont typiquement utilis\u00e9s avec des valeurs bool\u00e9ennes (logiques)\u00a0; lorsque c'est le cas, ils renvoient une valeur bool\u00e9enne \u00e9galement. Cependant, les op\u00e9rateurs && et || renvoient en r\u00e9alit\u00e9 la valeur d'un des op\u00e9randes sp\u00e9cifi\u00e9s. Si ces op\u00e9rateurs sont utilis\u00e9s avec des valeurs non bool\u00e9ennes, ils peuvent donc \u00e9galement renvoyer une valeur non bool\u00e9enne.", "localization_tags": [], "locale": "fr", "last_edit": "2015-04-11T13:20:33", "review_tags": []}, {"title": "\u903b\u8f91\u8fd0\u7b97\u7b26", "url": "/zh-CN/docs/Web/JavaScript/Reference/Operators/Logical_Operators", "tags": [], "summary": "
\u903b\u8f91\u8fd0\u7b97\u7b26\u901a\u5e38\u7528\u4e8e\u5e03\u5c14\u578b\uff08\u903b\u8f91\uff09\u503c\uff1b\u8fd9\u79cd\u60c5\u51b5\uff0c\u5b83\u4eec\u8fd4\u56de\u4e00\u4e2a\u5e03\u5c14\u578b\u503c\u3002\u7136\u800c\uff0c&&\u548c||\u8fd0\u7b97\u7b26\u5b9e\u9645\u4e0a\u8fd4\u56de\u4e00\u4e2a\u6307\u5b9a\u64cd\u4f5c\u6570\u7684\u503c\uff0c\u56e0\u6b64\u8fd9\u4e9b\u8fd0\u7b97\u7b26\u4e5f\u7528\u4e8e\u975e\u5e03\u5c14\u578b\uff0c\u5b83\u4eec\u8fd4\u56de\u4e00\u4e2a\u975e\u5e03\u5c14\u578b\u503c\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-01-05T05:59:05", "review_tags": []}, {"title": "Operadores L\u00f3gicos", "url": "/pt-BR/docs/Web/JavaScript/Reference/Operators/Operadores_Logicos", "tags": [], "summary": "Operadores l\u00f3gicos s\u00e3o tipicamente usados com valores Booleanos (l\u00f3gicos). Quando eles o s\u00e3o, retornam um valor booleano. Por\u00eam, os operadores && e || atualmente retornam o valor de um dos operandos especificos, ent\u00e3o seesses operadores s\u00e3ousados com valores n\u00e3o booleanos, eles podem retornar um valor n\u00e3o booleano.", "localization_tags": ["inprogress"], "locale": "pt-BR", "last_edit": "2014-11-19T11:48:56", "review_tags": []}], "modified": "2015-04-26T06:44:15", "label": "Operadors L\u00f2gics", "localization_tags": [], "url": "/ca/docs/Web/JavaScript/Referencia/Operadors/Logical_Operators", "last_edit": "2015-03-09T06:26:23", "summary": "Els operadors l\u00f2gics s'utilitzen normalment amb valors Boolean (l\u00f2gics). En cas de serh-hi presents, retornen un valor boole\u00e0. Tot i aix\u00ed, els operadors && i || retornen el valor d'un dels operands especificats, aix\u00ed que si aquests operadors es fan servir amb valors no booleans, poden retornar un valor no boole\u00e0.", "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": "Descripci.C3.B3", "title": "Descripci\u00f3"}, {"id": "Short-Circuit_Evaluation", "title": "Avaluaci\u00f3 de tipus curtcircuit"}, {"id": "Logical_AND_.28&&.29", "title": "AND l\u00f2gic ( && )"}, {"id": "OR_l.C3.B2gic_(.7C.7C)", "title": "OR l\u00f2gic ( || )"}, {"id": "Logical_NOT_.28.21.29", "title": "NOT l\u00f2gic ( ! )"}, {"id": "Regles_de_conversi.C3.B3", "title": "Regles de conversi\u00f3"}, {"id": "Convertir_AND_a_OR", "title": "Convertir AND a OR"}, {"id": "Convertir_OR_a_AND", "title": "Convertir OR a AND"}, {"id": "Desfer-se_de_par.C3.A8ntesis_aniuats", "title": "Desfer-se de par\u00e8ntesis aniuats"}, {"id": "Desfer-se_d'un_AND_aniuat", "title": "Desfer-se d'un AND aniuat"}, {"id": "Desfer-se_d'un_OR_aniuat", "title": "Desfer-se d'un OR aniuat"}, {"id": "Especificacions", "title": "Especificacions"}, {"id": "Compatibilitat_amb_navegadors", "title": "Compatibilitat amb navegadors"}, {"id": "JavaScript_1.0_and_1.1", "title": "Compatibilitat amb versions anteriors: Comportament a JavaScript 1.0 i 1.1"}, {"id": "See_also", "title": "Vegeu tamb\u00e9"}], "id": 136139, "review_tags": []}