Andonyx said:
To me though this is just an example of why Boolean logic suffices for almost everything you can do with a computer. I've never run into a computer problem I couldn't eventually solve by using booleans and nested "if then" statements.
As far as the apple I figure the routine would run something like:
Procedure "Apple?"
..If Red then
....If Round then
......If Shiny then
........If sweet then
.......... If whole then "Yes"
..........Else "HowMuch"
........Else "No"
......Else "No"
....Else "No"
..Else "No"
Procedure "HowMuch"
..If amount > / = 50% then "Yes"
..Else "No"
Procedure "Yes."
..Lprint "Yes, it is an apple"
Procedure "No."
..Lprint "No, not an apple."
So a cherry passes as an apple?
Or a piece of red, round, shiny and sweet candy?