﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2129	Incorrect Switch .. Case Else EndSwitch parsing	anonymous		"Executing this code causes ignoring all next '''Case''' statements after nested '''Case Else'''

{{{
$sSource	= 'Get7zBeginOffset'
$iError		= 1
$Result		= ""Bad choice""

Select
	Case StringCompare ($sSource, ""GetSFXEndOffset"") = 0
		Switch $iError
			Case -1
				$Result = ""-1""
			Case 1
				$Result = ""1""
		EndSwitch

	Case StringCompare ($sSource, ""GetMSIVersionInfo"") = 0
		Switch $iError
			Case -1
				$Result = ""-1""
			Case Else
				$Result = ""~""
		EndSwitch

	Case StringCompare ($sSource, ""Get7zBeginOffset"")
		Switch $iError
			Case -1
				$Result = ""-1""
			Case 1
				$Result = ""1""
		EndSwitch

	Case StringCompare ($sSource, ""ImportVersionInfo"") = 0
		Switch $iError
			Case -1
				$Result = ""-1""
			Case 1
				$Result = ""1""
			Case 2,3
				$Result = ""2,3""
		EndSwitch

EndSelect

ConsoleWrite ($Result & @CR)
}}}
"	Bug	closed		AutoIt	3.3.9.0	None	No Bug		
