PA Designer Learn 4: More Python Commands
4. Equality tests
int(elapsed_time()) == 5 is an equality test.
If the values on both sides of the equality operator (==) are the same then the test result is True. Otherwise the test result is False.
Note the use of a double equal sign, not just a single equal sign!
In our example, the equality test will become True after 5 seconds of elapsed time and turn False again after 6 seconds of elapsed time. This will result in our robot opening its eyes for one second only.