Conditional Statements ...................................................................................................................... 19
If Statements ................................................................................................................................... 19
Conditions ....................................................................................................................................... 21
Switch Statements .......................................................................................................................... 22
Exercise ............................................................................................................................................... 23
Controlled Loops ................................................................................................................................. 23
For Loops ......................................................................................................................................... 23
While Loops ..................................................................................................................................... 24
Do/While Loops .............................................................................................................................. 25
Loop Controls .................................................................................................................................. 25
Exercise ........................................................................................................................................... 26
Chapter 4: Data Types ................................................................................................................................ 27
In This Chapter ........................................................................................................................................ 28
Informer Data Types ............................................................................................................................... 28
Numeric Data Type ................................................................................................................................. 28
String Data Type ...................................................................................................................................... 28
String Properties, Methods & Operations .......................................................................................... 29
Length ............................................................................................................................................. 29
Concatenation ................................................................................................................................. 29
Substrings ........................................................................................................................................ 29
Finding a String in a String .............................................................................................................. 30
Breaking Apart a String ................................................................................................................... 30
Changing Case ................................................................................................................................. 30
Exercises .............................................................................................................................................. 31
Date Data Type........................................................................................................................................ 31
Date Methods and Operations ........................................................................................................... 31
Creating a Date Variable ................................................................................................................. 31
Changing the Date Format .............................................................................................................. 32
Getting the Components of a Date ................................................................................................. 33
Setting the Date .............................................................................................................................. 34
Comparing Dates ............................................................................................................................. 34
Date Math ....................................................................................................................................... 36