A boolean in any programming language is a value that that is either "True" or "False", sometimes represented by binary values 1 = true 0 = false
It means 0 or 1, the computer can only read these 2 letters, so when the result is true, it returns 1, and when the result is false, it returns 0. That's easy to understand.