O'Reilly logo

3D Game Programming for Teens, Second Edition by Eric Grebler, Maneesh Sethi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Conditionals

Conditionals are a very important part of any program. Conditionals allow your program to think. With conditionals, any program can make choices and decisions. Before you can fully understand conditionals, however, you must first learn about the Blitz3D idea of truth and falsehood.

Truth and Falsehood

Blitz3D has a different idea about what is true and what is false than we humans do. To a human, some things may be partly true, but to a computer, any expression is either true or false. Although parts of an expression can be different from the rest, the entire expression is only evaluated as one or the other.

Blitz3D (and computers in general) believes that zero is false and any other value (nonzero value) is true, although the true ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required