﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3204	"""if"" function does not see variables that contain _IE objects as being ""true"""	mexykanu		"Hello,

We have the following code:
{{{
Global $oIE = _IEAttach(""your website"",""url"")

local $body1 = _IETagNameGetCollection($oie,'body',0)
local $body2 = False
local $body3 = True
local $body4 = 'text'
local $body5 = 2
if $body1 Then
	MsgBox(0,'','body1 is not empty')
EndIf
if $body2 Then
	MsgBox(0,'','body2 is not empty')
EndIf
if $body3 Then
	MsgBox(0,'','body3 is not empty')
EndIf
if $body4 Then
	MsgBox(0,'','body4 is not empty')
EndIf
if $body5 Then
	MsgBox(0,'','body5 is not empty')
EndIf
}}}
Issue: '''if $body1''' does not return ''True'' but the variable '''$body1''' contains information. This is very confusing and generates a lot of wasted time debugging code that has no bugs.

Workaround: using the following code returns ''True''
{{{
if $body1 <> '' Then
}}}"	Bug	closed		AutoIt	3.3.14.2	None	No Bug		
