# not green

**URL:** <https://forums.openmv.io/t/not-green/1894>\
**Category:** OpenMV Boards\
**Created:** [August 21, 2020, 1:07am UTC](https://forums.openmv.io/t/not-green/1894 "2020-08-21T01:07:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ulf\_Andersson](https://avatars.discourse-cdn.com/v4/letter/u/c0e974/32.png) [@Ulf\_Andersson](https://forums.openmv.io/u/Ulf_Andersson)\
**Post date:** [August 21, 2020, 1:07am UTC](https://forums.openmv.io/t/not-green/1894/1 "2020-08-21T01:07:08Z")

</div>

why does not else work?  
else:  
print (“not green”)  
I want to indicate when there is no green

```python
while(True):
    img = sensor.snapshot()
    for blob in img.find_blobs(thresholds, pixels_threshold=2000, area_threshold=1120, merge=True):
        if blob.code() == 2:
            img.draw_rectangle(blob.rect()) # works
        else:
            print("not green") # don't work

```

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [August 21, 2020, 2:23am UTC](https://forums.openmv.io/t/not-green/1894/2 "2020-08-21T02:23:49Z")

</div>

Put your code in the code tags. I can’t tell from the lack of formatting.
