When Distance < ()
when distance \< ()::extension hat
Category EV3
Type Hat
Introduced in 3.0
The correct title of this article is When Distance < () (block). The Scratch Wiki uses this different title because of technical restrictions.


The when distance < () block is a Hat Block in the LEGO MINDSTORMS EV3 Extension. It starts its script when the EV3's distance from the computer is less than the specified value.

Workaround

This block can be replicated by the following code:

forever
if <(distance) < () > then
. . .
end
end