Saturday, June 14th, 2008 Posted in Dealing with Branching Statements | No Comments »
Rather than examine a single Boolean expression, your program may need to examine two or more Boolean expressions. For example, the following program checks the Boolean expression (Salary ... Read more..Saturday, June 14th, 2008 Posted in Dealing with Branching Statements | No Comments »
The sample program in the preceding section uses a Boolean expression (4 < 54) that’s fairly useless because it’s always true. Every time that you run the program, ... Read more..Saturday, June 14th, 2008 Posted in Dealing with Branching Statements | No Comments »
Many programming languages let you define a variable as a Boolean data type. In REALbasic, you can define a variable as a Boolean data type like this: Dim Guilty ... Read more..Saturday, June 14th, 2008 Posted in Dealing with Branching Statements | No Comments »
To make any decision, you first need to ask a question such as, “Do I feel like eating a hamburger?” If the answer is yes, you go to a ... Read more..Saturday, June 14th, 2008 Posted in Number and Strings | No Comments »
A string can consist of letters, symbols, and numbers. The most common use for storing numbers as a string is when the numbers represent something special, such as ... Read more..