When Brightness < ()
when brightness \< ()::extension hat
Category EV3
Type Hat
Introduced in 3.0
The correct title of this article is When Brightness < () (block). The Scratch Wiki uses this different title because of technical restrictions.
Document stub.png This article is a stub. It may be incomplete, unfinished, or have missing parts/sections. If the article can be expanded, please do so! There may be suggestions on its talk page. (December 2019)

The when brightness < () block is a Hat Block in the LEGO MINDSTORMS EV3 Extension. It starts its script when the EV3's detected light volume is less than the specified value.

Workaround

This block can be replicated by the following code:

forever
if <(brightness::ev3) < () > then
. . .
end
end

or

when green flag clicked
wait until <(brightness::ev3) < () >
. . .

Example Uses

  • Detect when the light is turned off in a room
  • Detect when the light sensor is covered by a solid object