This is a function in python to validate a day entry.
def valid_day(day):
if day and day.isdigit():#if day
day = int(day)
if day > 0 and day <= 31:
return day
I want to know what the expression if day means (in terms of semantics).
I only know the effect of if on boolean expressions not on variables like integers or arrays.