Change bool to number

How can I assume 1 and 0 in True and False part of the program?
as

True * False = 0

Y

True * True = 1