We want to make our own predicate, a kind of block that reports either true
or false
. We have a "greater than" operator (>
), an "equal" operator (=
), and
a "less than" operator (<
), but we want a new "greater than or equal to" (>=
)
operator.
This isn't really a hard problem, but we've learned from experience that many students have a hard time with it at first. So here are some suggestions if you get stuck.
predicate
block shape in the initial Make a
block
dialog.
>=
block name goes between the two input slots. So you'll have to use the left plus sign in the Block
Editor.
true
and false
answers.
If you do have trouble with this problem, don't feel bad, but try to understand what's getting in the way, and when you see a solution, learn from it!