Continue the program from the previous problem by coming up with a boolean expression that determines if the value is even. Remember, the mod can determine if a number is even or odd.
Coding:
Hotkey Shortcuts
Move BlocksUP or DOWN or TAB
Run Program ALT + SHIFT + R
Stop Program ALT + SHIFT + S
Hide Tray ALT + SHIFT + X
Zoom In ALT + +
Zoom Out ALT + -
Open Help ALT + SHIFT + H
Navigate to Tray ALT + 1
Navigate to Blocks ALT + 2
Enter Navigation Mode SHIFT + ENTER
Blocks
Hint
Great job!
Try again
Replace true in the if block with an expression that results in true when the number is even and false when it is odd. Use mod to calculate whether the value is even or odd, value mod 2 = 0, where the remainder is 0 if the number is even and 1 if it is odd.