﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
146	Boolean numeric conversion	pdaughe		"{{{
#CS
If you use arithmetics together with Boolean values (which is not advisable!), the following rules apply:

A Boolean true will be converted into the numeric value 1
A Boolean false will be converted into the numeric value 0

Example:
$Boolean1 = true
$Number1 = 100
$Number2 = $Boolean1 + $Number1

This will result in $Number2 to be the numeric value 101
#CE

$Var = True
If $var = 7 Then
	MsgBox(4096,"""", ""Value is positive."")
EndIf
}}}

P.S. Did I submit this ticket correctly? I never used the Trac system before...I searched for existing problems and found a topic on Booleans back in 2005, but didn't see a specific example of this. My apologies if I submit this ticket incorrectly."	Bug	closed		AutoIt	3.2.10.0		No Bug	Boolean	
