{"json_modified": "2016-02-14T20:09:02.565362", "slug": "Web/JavaScript/Reference/Statements/switch", "tags": ["Instru\u00e7\u00e3o", "Refer\u00eancia", "Web", "JavaScript"], "locale": "pt-BR", "title": "switch", "translations": [{"title": "switch", "url": "/en-US/docs/Web/JavaScript/Reference/Statements/switch", "tags": ["Reference", "Statement", "Web", "JavaScript"], "summary": "The switch
statement evaluates an expression, matching the expression's value to a case
clause, and executes statements associated with that case.", "localization_tags": [], "locale": "en-US", "last_edit": "2016-01-28T10:34:33", "review_tags": []}, {"title": "switch", "url": "/pl/docs/Web/JavaScript/Referencje/Polecenia/switch", "tags": ["Dokumentacja_JavaScript", "JavaScript", "Dokumentacje", "Strony_wymagaj\u0105ce_dopracowania", "Wszystkie_kategorie"], "summary": "Por\u00f3wnuje wyra\u017cenie z danymi etykietami i wykonuje instrukcje z nimi powi\u0105zane.", "localization_tags": [], "locale": "pl", "last_edit": "2014-05-31T00:08:19", "review_tags": []}, {"title": "switch", "url": "/ja/docs/Web/JavaScript/Reference/Statements/switch", "tags": [], "summary": "\u5f0f\u3092\u8a55\u4fa1\u3057\u3001\u305d\u306e\u5f0f\u306e\u5024\u304c case \u306e\u30e9\u30d9\u30eb\u3068\u4e00\u81f4\u3059\u308b\u306a\u3089\u3001\u305d\u306e case \u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f\u6587\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002", "localization_tags": ["inprogress"], "locale": "ja", "last_edit": "2015-06-25T12:40:28", "review_tags": []}, {"title": "switch", "url": "/fr/docs/Web/JavaScript/Reference/Instructions/switch", "tags": ["R\u00e9f\u00e9rence", "Reference", "Statement", "JavaScript"], "summary": "L'instruction switch
\u00e9value une expression et, selon le r\u00e9sultat obtenu et le cas associ\u00e9, ex\u00e9cute les instructions correspondantes.", "localization_tags": [], "locale": "fr", "last_edit": "2016-01-30T06:41:04", "review_tags": []}, {"title": "switch", "url": "/ru/docs/Web/JavaScript/Reference/Statements/switch", "tags": ["Statement", "JavaScript"], "summary": "\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f switch\u00a0\u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0435\u0442 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u043e \u0441\u043b\u0443\u0447\u0430\u044f\u043c\u0438, \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u043c\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0435\u0451, \u0430 \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438.", "localization_tags": [], "locale": "ru", "last_edit": "2014-11-30T14:00:44", "review_tags": []}, {"title": "switch", "url": "/zh-CN/docs/Web/JavaScript/Reference/Statements/switch", "tags": [], "summary": "switch\u8bed\u53e5\u5bf9\u4e00\u4e2a\u8868\u8fbe\u5f0f\u6c42\u503c\uff0c\u5c06\u7ed3\u679c\u4e0e case
\u5b50\u8bed\u53e5\u6bd4\u8f83\uff0c\u5982\u679c\u5339\u914d\uff0c\u5219\u4ece case \u5904\u7684\u8bed\u53e5\u5411\u4e0b\u6267\u884c\u3002", "localization_tags": ["inprogress"], "locale": "zh-CN", "last_edit": "2015-01-22T07:08:45", "review_tags": []}, {"title": "switch", "url": "/de/docs/Web/JavaScript/Reference/Statements/switch", "tags": ["Anweisung", "JavaScript"], "summary": "Die\u00a0switch Anweisung\u00a0wertet einen Ausdruck (expression)\u00a0aus. Diese Auswertung wird mit einer case-Klausel verglichen und (bei \u00dcbereinstimmung)\u00a0die entsprechenden Anweisungen\u00a0ausgef\u00fchrt.", "localization_tags": [], "locale": "de", "last_edit": "2015-07-02T04:08:53", "review_tags": []}, {"title": "switch", "url": "/es/docs/Web/JavaScript/Referencia/Sentencias/switch", "tags": [], "summary": "La sentencia\u00a0switch\u00a0eval\u00faa una expresi\u00f3n, comparando la expresi\u00f3n con un conjunto de \u00a0valores\u00a0predefinidoes, y ejecuta comandos seg\u00fan el caso.", "localization_tags": ["inprogress"], "locale": "es", "last_edit": "2015-11-19T16:10:19", "review_tags": []}], "modified": "2016-02-14T20:09:00", "label": "switch", "localization_tags": [], "url": "/pt-BR/docs/Web/JavaScript/Reference/Statements/switch", "last_edit": "2016-02-14T20:08:55", "summary": "Se a condi\u00e7\u00e3o for correspondida, o programa executa as instru\u00e7\u00f5es asssociadas. Se m\u00faltiplos casos corresponderem o valor, o primeiro caso que corresponder \u00e9 selecionado, mesmo se os casos n\u00e3o forem iguais entre si.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "sect1", "title": "\u00a0"}, {"id": "Syntax", "title": "Sintaxe"}, {"id": "Description", "title": "Descri\u00e7\u00e3o"}, {"id": "Examples", "title": "Exemplos"}, {"id": "Example:_Using_switch", "title": "Exemplo: Usando\u00a0"}, {"id": "What_happens_if_I_forgot_a_break", "title": "Exemplo: O que acontece se eu esquecer um break?"}, {"id": "Methods_for_Multi-criteria_Case", "title": "Exemplo: M\u00e9todos para m\u00faltiplos casos"}, {"id": "Multi-Caso_-_Opera\u00e7\u00e3o_Simples", "title": "Multi-Caso - Opera\u00e7\u00e3o Simples"}, {"id": "Multi-Caso_-_Opera\u00e7\u00f5es_encadeadas", "title": "Multi-Caso - Opera\u00e7\u00f5es encadeadas\u00a0"}, {"id": "Especifica\u00e7\u00f5es", "title": "Especifica\u00e7\u00f5es"}, {"id": "Compatibilidade_de_Navegadores", "title": "Compatibilidade de Navegadores"}, {"id": "See_also", "title": "See also"}], "id": 135107, "review_tags": []}