- The correct title of this article is When Distance < () (block). The Scratch Wiki uses this different title because of technical restrictions.
When Distance < () | |
when distance \< () | |
Category | LEGO MINDSTORMS EV3 |
Type | Hat |
Introduced in | 3.0 |
The when distance < () block is a hat block and a LEGO MINDSTORMS EV3 block. The block activates when the EV3 unit's distance from the computer is less than the specified value.
Workaround
This block can be replicated by the following code:
forever if <(distance::ev3) < () > then . . . end end
or
when green flag clicked wait until < (distance::ev3) < () > . . .