Crystal Reports Online Training

Learn Online, Anytime, Anywhere

Step-by-step tutorials and online videos.

Click Here To Learn More »

B. 4 Conditional Structures

Conditional Structures

The If statement uses the standard syntax of testing a condition and performing one action if the condition is true and another action if it’s false. The code in the Else block is executed if the test returns false. Basic syntax also supports the ElseIf statement. An If block must always be finished with and End If.

Basic syntax for a nested If statement:

If condition1 Then
…code…
ElseIf condition2 Then
…code…
Else
…code…
End If

In Basic syntax, the Select Case statement is built by first typing the keywords Select Case followed by the variable name you want to test. After that, list the test conditions and the related code blocks using Case statements. You can list multiple conditions for a single Case statement by separating the conditions with a comma. If none of the Case statements...

Get UNLIMITED Crystal Reports Online Training!

Click Here To Start Your Training!

1500+ Tutorial Pages

Complete Crystal Reports Online Training with over 1,500 pages of better than book quality Crystal Reports tutorials.

Step-by-step Online Videos

Learn at your own pace from the comfort of your home! Pause, rewind and watch online training videos anytime!

Online Community

Members-only community where you can post and answer questions. The community is checked on a regular basis by best selling Crystal Reports book author Brian Bischof to help answer your questions.

Cut & Paste Source Code

Save time with simple cut and paste source code you can use right now in your next report!

Click Here To Start Your Training!