Table of Contents
Inside <% %> tags RSP code consists of a sequence of sequentially executed statements. These may be expressions, variable declarations, function declarations or control statements.
This chapter will describe the control statements in RSP. Control statements are used to affect the flow of execution in your programs.
The if statement is used to conditionally specify which branch the program should take. The syntax is shown below.
The else clause is optional. It is common to use an if statement as the statement in the else clause as shown below: