I wish it was that simple, but in my language I do not have a "bool" type. It only has two data types, the first being "number" (which is essentially a double in C++ terms), and "text" (which is similar to the std::string, but more functional).
(Remember that true/false are actually just the numbers 1 and 0)
Because my language does not have a bool type, look at this code:
1 2 3 4 5 6 7 8 9 10
main begin
/////// THIS IS THE IMPORTANT LINE
number X = trueif X begin
write("X = true")
end
end
Now, because a "number variable" can hold any number I could have had line 4 be: number X = -34.567
Now, that obviosly does not equal true, so should the if statement work? But, it also does not equal false.... I dont know what to do???