{"json_modified": "2016-10-20T08:29:18.275840", "uuid": "89dbc667-ecef-42a0-bb49-e60a1f462524", "title": "Logical Operators", "url": "/en-US/docs/Web/JavaScript/Reference/Operators/Logical_Operators", "tags": ["operator", "Operator", "JavaScript"], "translations": [{"uuid": "b6852de8-56f0-4d37-9393-f6ef3fb47ff8", "title": "Operadors L\u00f2gics", "url": "/ca/docs/Web/JavaScript/Referencia/Operadors/Logical_Operators", "tags": [], "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.", "localization_tags": [], "locale": "ca", "last_edit": "2015-03-09T06:26:23", "review_tags": []}, {"uuid": "07a6b691-7ebe-4946-8c41-784d8d93a3c0", "title": "Logische Operatoren", "url": "/de/docs/Web/JavaScript/Reference/Operators/Logische_Operatoren", "tags": ["operator", "Operator", "JavaScript"], "summary": "Logische Operatoren werden typischerweise im Zusammenhang mit\u00a0\u00a0Boolean
(logischen) Werten verwendet. Die Operatoren\u00a0&& (Logisches UND) und || (Logisches ODER) geben dabei\u00a0den Wert von einem der Operanden zur\u00fcck. Sind die Operanden mit nicht-booleschen Werten belegt, geben diese Operatoren entsprechend nicht-boolesche Werte zur\u00fcck.", "localization_tags": [], "locale": "de", "last_edit": "2016-04-22T14:22:14", "review_tags": []}, {"uuid": "011225cb-1ab0-426e-951a-b7f49a57366e", "title": "Operadores l\u00f3gicos", "url": "/es/docs/Web/JavaScript/Referencia/Operadores/Operadores_l%C3%B3gicos", "tags": [], "summary": "Los operadores l\u00f3gicos se usan t\u00edpicamente con valores Boolean
. En tal caso, regresan un valor Boolean. Sin embargo, los operadores && y || regresan en realidad el valor de uno de los operandos especificados, por lo que si estos operadores se usan con valores no Boolean, posiblemente regresen un valor no Boolean.", "localization_tags": ["inprogress"], "locale": "es", "last_edit": "2015-12-14T19:42:54", "review_tags": ["editorial"]}, {"uuid": "6c6776af-6624-4d3c-9768-ec71d431feb1", "title": "Op\u00e9rateurs logiques", "url": "/fr/docs/Web/JavaScript/Reference/Op%C3%A9rateurs/Op%C3%A9rateurs_logiques", "tags": ["R\u00e9f\u00e9rence", "Reference", "operator", "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": "2016-10-01T01:50:43", "review_tags": []}, {"uuid": "d4dc24d7-0a2e-490b-ad83-f355ec07da57", "title": "\u8ad6\u7406\u6f14\u7b97\u5b50", "url": "/ja/docs/Web/JavaScript/Reference/Operators/Logical_Operators", "tags": ["operator", "Operator", "JavaScript"], "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": "2016-03-18T08:31:02", "review_tags": []}, {"uuid": "6fc07002-901f-464c-b0fd-ada8850050ca", "title": "\ub17c\ub9ac \uc5f0\uc0b0\uc790(Logical Operators)", "url": "/ko/docs/Web/JavaScript/Reference/Operators/%EB%85%BC%EB%A6%AC_%EC%97%B0%EC%82%B0%EC%9E%90(Logical_Operators)", "tags": [], "summary": "\ub17c\ub9ac \uc5f0\uc0b0\uc790(Logical operators)\ub294 \u00a0\ubcf4\ud1b5\u00a0Boolean
\ub17c\ub9ac\uc801(logical)\u00a0\uac12(value)\uacfc \ud568\uaed8\u00a0\uc4f0\uc785\ub2c8\ub2e4. Logical operator\uc640 Boolean value\ub97c \ud568\uaed8\u00a0\uc0ac\uc6a9\ud558\uba74, Boolean value\ub97c \ubc18\ud658(return)\ud569\ub2c8\ub2e4.\u00a0\uadf8\ub7ec\ub098, \u00a0&&
\uc640 ||
\u00a0\uc5f0\uc0b0\uc790(operator)\ub294 \ud53c\uc5f0\uc0b0\uc790(operand)\uc911 \ud2b9\uc815\ud55c operand\ud558\ub098\ub97c return\ud569\ub2c8\ub2e4. \uc989, Boolean\uc774 \uc544\ub2cc value\uc640 logical\u00a0operator\ub97c \ud568\uaed8\u00a0\uc0ac\uc6a9\ud558\uba74 Boolean \uc774 \uc544\ub2cc value\ub97c return\ud560\uc218 \uc788\uc2b5\ub2c8\ub2e4.", "localization_tags": ["inprogress"], "locale": "ko", "last_edit": "2016-10-20T08:29:04", "review_tags": []}, {"uuid": "5ae8da8a-bf5c-491e-bdec-00b8d5930d3c", "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": []}, {"uuid": "a80c13da-14d2-4341-bc4b-1fca45f7da80", "title": "\u041b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b", "url": "/ru/docs/Web/JavaScript/Reference/Operators/%D0%9B%D0%BE%D0%B3%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D0%B5_%D0%BE%D0%BF%D0%B5%D1%80%D0%B0%D1%82%D0%BE%D1%80%D1%8B", "tags": [], "summary": "\u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432:", "localization_tags": [], "locale": "ru", "last_edit": "2016-04-22T09:25:20", "review_tags": []}, {"uuid": "56937d75-8b00-4a20-8ac9-94d6dc2034d0", "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": []}], "modified": "2016-09-30T07:54:41", "label": "Logical Operators", "localization_tags": [], "locale": "en-US", "id": 3028, "last_edit": "2016-09-30T07:54:34", "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.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Description", "title": "Description"}, {"id": "Short-Circuit_Evaluation", "title": "Short-Circuit Evaluation"}, {"id": "Logical_AND_()", "title": null}, {"id": "Logical_OR_()", "title": null}, {"id": "Logical_NOT_(!)", "title": null}, {"id": "Conversion_rules", "title": "Conversion rules"}, {"id": "Converting_AND_to_OR", "title": "Converting AND to OR"}, {"id": "Converting_OR_to_AND", "title": "Converting OR to AND"}, {"id": "Converting_between_NOTs", "title": "Converting between NOTs"}, {"id": "Removing_nested_parentheses", "title": "Removing nested parentheses"}, {"id": "Removing_nested_AND", "title": "Removing nested AND"}, {"id": "Removing_nested_OR", "title": "Removing nested OR"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/JavaScript/Reference/Operators/Logical_Operators", "review_tags": []}