Ch.4 Execution Control Flashcards
true
Logical true
false
Logical false
break
A command within the loop module that forces control to the statement following the innermost loop.
case
A specific value within a switch statement.
continue
Skips to the end of the innermost to loop but remains inside it.
else
Within an if statement, begins the codebook executed when the condition is false.
elseif
Within and if statement, begins a second test when the first condition is false.
if
Begins a conditional module; the following code block is executed if the logical expression exp is true.
input(str)
Requests input from the user
otherwise
Catch all code block at the end of this which statement
switch(variable)
Begins A code module select specific values of the variable (must be countable)
while
A code module repeats as long as the logical expression is true.
all(a)
True if all the values in a, a logical vector, are true
and(a, b)
True if both a an b are true.
any(a)
True if any of the values in a, a logical vector, is true.