如果条件无法正常运行且计数器未更新

嘿,即使“ if”条件不成立,也要在以下代码中打印if语句中的值。 我如何打印“未找到匹配项”

counter=0
print(": HOTEL NAME : ROOM NUMBER :  AIR CONDITIONING  : BREAKFAST  :  TELEVISION   : WIFI  : Cost/night($):")
for b in range(0,(n+2)):
    if(cost >= rooms1[b][6]):               
        print(rooms1[b])
        counter=1
ex=input("Press any key to continue..")
if(counter==0):
    print("No Hotels found accoeding to your budget")
    ex=input("Press any key to continue\n")

control is not going to the if (counter==0) even if the if statement is not true and counter is not set to 1.

if(counter==0):
    print("No Hotels found accoeding to your budget")
    ex=input("Press any key to continue\n")