I am trying to verify a variable condition to be greater than 0 and then if so then the text variable would be true. I have a fair amount of these as notifications I want to display in my code but for the sake of my question I will only list three here is my code:

```
notifications1 = 100
if notifications1 > 1:
    text1 = [{
                    'link': 'error1',
                    'icon_class': 'fa',
                    'icon': 'fa-calendar-check-o',
                    'color': 'info',
                    'text': SINVPartMismatch.description

            }]
else:
    text1 = None

notifications2 = 50
if notifications2 > 1:
    text2 = [{
                    'link': 'error1',
                    'icon_class': 'fa',
                    'icon': 'fa-calendar-check-o',
                    'color': 'info',
                    'text': INVNoPart.description

            }]
else:
    text2 = None

notifications3 = 0
if notifications3 > 1:
    text3 = [{
                    'link': 'error1',
                    'icon_class': 'fa',
                    'icon': 'fa-calendar-check-o',
                    'color': 'info',
                    'text': INBinNoInventoryMaster.description

            }]
else:
    text3 = None

return text1, text2, text3

```

When I run this I get the error "UnboundLocalError local variable 'text3' referenced before assignment". Basically if the number is greater than 0 I want it to display the text variables and not skip any when it reaches one that is 0. I appreciate any insight on getting me in the right direction for this!

\*\*Edit - Now when I run it thinks they are all blank and does not display the 'text' description but if I only return one text1, text2 in the return portion it will display.