﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3953	missing bracket error when using ternary operator inside array definition	AspirinJunkie	Jpm	"When using a ternary operator inside a direct array definition, an error is thrown at runtime when the if branch is applied:

{{{#!autoit
; no error thrown
Global $A = [ 1 > 2  ? 1 : 2 ] ; else path
Global $A = [ 2 < 1  ? 2 : 1 ] ; else path
Global $A = [ 1 <> 1 ? 1 : 2 ] ; else path
Global $A = [ False  ? 1 : 2 ] ; else path

; error ""Missing right bracket ')' in expression.""
Global $A = [ 2 > 1 ? 2 : 1 ] ; if path
Global $A = [ 1 < 2 ? 1 : 2 ] ; if path
Global $A = [ 1 = 1 ? 1 : 2 ] ; if path
Global $A = [ True  ? 1 : 2 ] ; if path
}}}

A workaround would be to add a parenthesis around the expression.
Nevertheless, there seems to be a parsing problem here. "	Bug	assigned		AutoIt	3.3.16.0	None		ternary bracket	
