{"action":"opened","issue":{"url":"https://api.github.com/repos/DarthGandalf/kvirc-issues/issues/923","labels_url":"https://api.github.com/repos/DarthGandalf/kvirc-issues/issues/923/labels{/name}","comments_url":"https://api.github.com/repos/DarthGandalf/kvirc-issues/issues/923/comments","events_url":"https://api.github.com/repos/DarthGandalf/kvirc-issues/issues/923/events","html_url":"https://github.com/DarthGandalf/kvirc-issues/issues/923","id":97278347,"number":923,"title":"Problem with switch case execution","user":{"login":"DarthGandalf","id":325092,"avatar_url":"https://avatars.githubusercontent.com/u/325092?v=3","gravatar_id":"","url":"https://api.github.com/users/DarthGandalf","html_url":"https://github.com/DarthGandalf","followers_url":"https://api.github.com/users/DarthGandalf/followers","following_url":"https://api.github.com/users/DarthGandalf/following{/other_user}","gists_url":"https://api.github.com/users/DarthGandalf/gists{/gist_id}","starred_url":"https://api.github.com/users/DarthGandalf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarthGandalf/subscriptions","organizations_url":"https://api.github.com/users/DarthGandalf/orgs","repos_url":"https://api.github.com/users/DarthGandalf/repos","events_url":"https://api.github.com/users/DarthGandalf/events{/privacy}","received_events_url":"https://api.github.com/users/DarthGandalf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-26T02:53:32Z","updated_at":"2015-07-26T02:53:32Z","closed_at":null,"body":"**Reported by OmegaPhil on 30 Aug 2010 13:30:44 UTC**\nIn the documentation and via talk on IRC, I understand that if you don't specify 'break' in the command(s) a successfully-evaluated case executes, then all case commands following are executed until break or the switch ends.\r\n\r\nHowever, when the following switch statement is tested:\r\n\r\n```\r\n%tmp = 1;\r\nswitch(%tmp)\r\n{\r\n    case(1): echo \\%tmp was 1!;\r\n    case(2): echo \\%tmp was 2!;\r\n    default: echo \\%tmp was not 1 nor 2: it was %tmp!;\r\n}\r\n```\r\n\r\nThe following results:\r\n\r\n```\r\n%tmp was 1!\r\n%tmp was not 1 nor 2: it was 1!\r\n```\r\n\r\nThis seems to miss out execution of 'case(2)'.\n\n---\nMigrated from: https://svn.kvirc.de/kvirc/ticket/923"}}