| Visual Basic 2008 » Chapter 10 |
Performing OperationsJust as arithmetic is a necessary part of everyday life, it's also vital to developing Windows programs. You probably won't write an application that doesn't add, subtract, multiply, or divide some numbers. In this chapter, you'll learn how to perform arithmetic in code. You'll also learn about order of operator precedence, which determines how Visual Basic evaluates complicated expressions (equations). After you understand operator precedence, you'll learn how to compare equalities something that you'll do all the time. Boolean logic is the logic Visual Basic uses to evaluate expressions in decision-making constructs. If you've never programmed before, Boolean logic might be a new concept to you. In this chapter, I explain what you need to know about Boolean logic to create efficient code that performs as expected.
Chapter 10.1: Arithmetic Operations You have to have solid math skills to be a programmer; you'll be performing a lot of basic arithmetic when writing Visual Basic applications. Read more...
Chapter 10.2: Comparing Equalities Comparing values, particularly variables, is even more common than performing arithmetic. Read more...
Boolean logic is a special type of arithmetic/comparison. Boolean logic is used to evaluate expressions to either True or False. Read more... |