Idon't know why this is happening. Been trying to fix for sometime now
def Bettings():
    while True:
        if "Rolling in 35." in Label.text:
            Updated_Balance = driver.find_element_by_xpath("""//*[@id="balance"]""")
        if "Rolling in 23." in Label.text:
            Current_Balance = driver.find_element_by_xpath("""//*[@id="balance"]""")
        if "Rolling in 28." in Label.text:
            if Current_Balance < Updated_Balance:
                GrayBetButton.click()
            if Current_Balance > Updated_Balance:
                RedBetButton.click()
Bettings()
Error:
UnboundLocalError: local variable 'Current_Balance' referenced before assignm