Conditionals Problems

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7

Adding an elseif Block

Like the last problem, decide if a number is positive, negative, or zero. Only this time you won't use a nested if-else block, you will use the elseif block with a boolean expression instead.

if value > 0
elseif true
else
end

Coding:

Blocks

PreviousNext