
var = 100
if ( var == 100 ) : print("Value of expression is 100")

if  var is  100 : 
    print("... Value of expression is 100")


if id(var) == id(100) : 
    print("... Value of expression is 100")

print("The if statement contains a logical expression using which data is compared and a decision is made based on the result of the comparison.")
print()

var1 = 100
if var1:
    print("1 - Got a true expression value")
    print (var1)

print()
#If boolean expression evaluates to FALSE, then the first set of code after the end of the if statement(s) is executed.
var2 = 0
if var2:
    print("0 - Got a true expression value")
    print(var2)
print("0 Good bye!")


print 
var2 = 1
if var2:
    print("2 - Got a true expression value")
    print(var2)
print("Good bye!")

print()
print()

var2 = False
if var2:
    print("TRUE")
    print(var2)
print("FALSE!")

print()
var2 = True
if var2:
    print("TRUE")
    print (var2)
   
print()

var2 = True
if var2 == 'True':
    print("TRUE")
    print (var2)
print("FALSE!" )

print()
var2 = True
if var2 == "True":
    print("TRUE")
    print (var2)
print("FALSE!") 

print()
var2 = True
if var2 == True:
    print("TRUE")
    print (var2)

print()
var2 = 'True'
if var2 == "True":
    print("TRUE")
    print (var2)
