﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3559	ArrayAdd item-delimited string erroneously stores Booleans as strings / Feature request func Bool()	RTFC		"Hi devs.
This is a combined Bug report + feature request. Example below.

{{{
Global $test[1][2]
$test[0][0]=False
$test[0][1]=True
_ArrayAdd($test,False & ""|"" & True)
for $cc=0 to 1
	ConsoleWrite(IsBool($test[$cc][0]) & "", "" & IsBool($test[$cc][1]) & @CRLF)
Next

}}}
Note how the first row contains Booleans, but the second row does not.

This can be solved by adding a function Bool() that forces the contained expression to be evaluated as/converted into a boolean (in analogy to Number() & IsNumber(), Ptr() & IsPtr(), etc)

The fix for the above bug would then be to write:
_ArrayAdd($test,Bool(False) & ""|"" & Bool(True))
and/or _ArrayAdd would have to be smart enough to detect the difference between ""True"" and True, ""False"" and False.
Cheers,
RT"	Feature Request	closed		AutoIt		None	Fixed		
