IF Statements - PowerPoint PPT Presentation

1 / 6
About This Presentation
Title:

IF Statements

Description:

IF Statements – PowerPoint PPT presentation

Number of Views:16
Avg rating:3.0/5.0
Slides: 7
Provided by: jdch7
Category:

less

Transcript and Presenter's Notes

Title: IF Statements


1
IF Statements
  • Simplest case (Single Alternative)
  • If condition then
  • statement(s)
  • End if

true
?
false
2
Two Alternatives
  • If condition then
  • statement(s)
  • Else
  • statement(s)
  • End if

false
true
?
3
Multiple Alternatives
  • If condition then
  • statement(s)
  • Elsif condition then
  • statement(s)
  • Elsif condition then
  • statement(s)
  • Else
  • statement(s)
  • End if

true
?
false
true
?
false
true
?
4
Precedence Rules
  • , NOT, ABS
  • , /, REM
  • , - (as monadic operators)
  • , -, (as dyadic operators)
  • lt, lt, , /, gt, gt
  • AND, OR, XOR

5
Boolean Operators
6
Examples
Write a Comment
User Comments (0)
About PowerShow.com