Skip to Content
Absolute Beginner's Guide to Programming, Third Edition
book

Absolute Beginner's Guide to Programming, Third Edition

by Greg Perry
November 2002
Beginner content levelBeginner
432 pages
11h 44m
English
Que
Content preview from Absolute Beginner's Guide to Programming, Third Edition

Comparison Operators

Visual Basic supports several operators that do not perform math. Instead, these comparison operators compare one data value to another. One value can be greater than, equal to, or less than the other value. With comparison operators, you can write programs that make decisions at runtime.

All comparison operators produce true or false results. In other words, the comparison is either true or the comparison is false. The rest of your code uses the result of this comparison to determine what to do next. For example, if a comparison returns a false value when determining whether an employee worked during a pay period, the rest of the program knows not to print a paycheck for the employee.

Table 7.5 describes the six comparison ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Absolute Beginner's Guide to Programming, Second Edition

Absolute Beginner's Guide to Programming, Second Edition

Greg Perry

Publisher Resources

ISBN: 0789729059Purchase book