SLIDE 1
Control Flow CS105 : Saelee dynamic flow of execution single path - - PowerPoint PPT Presentation
Control Flow CS105 : Saelee dynamic flow of execution single path - - PowerPoint PPT Presentation
Control Flow CS105 : Saelee dynamic flow of execution single path sequential decisions questions conditional operators Math Notation Ruby Operator < < > > >= <= = == != Boolean values true
SLIDE 2
SLIDE 3
“flow” of execution
SLIDE 4
single path
SLIDE 5
sequential
SLIDE 6
decisions
SLIDE 7
questions
SLIDE 8
conditional operators
SLIDE 9
< < > > ≥ >= ≤ <= = == ≠ !=
Math Notation Ruby Operator
SLIDE 10
Boolean values
SLIDE 11
true & false
SLIDE 12
Control flow
SLIDE 13
if ¡condition ¡ ¡# ¡body end
SLIDE 14
if ¡condition ¡ ¡# ¡if-‑clause else ¡ ¡# ¡else-‑clause end
SLIDE 15
if ¡condition1 ¡ ¡# ¡if-‑clause elsif ¡condition2 ¡ ¡# ¡elsif-‑clause-‑1 else ¡ ¡# ¡default-‑clause end
SLIDE 16
Boolean operators
SLIDE 17
not ! and &&
- r
||
Name Ruby Operator