def ifstate(*a):
    global elseflag
    if (a[0] != '0'):
        execscript(' '.join(a[1:]))
        elseflag = False
    else:
        elseflag = True
def ifstate(*a):
    global elseflag
    if (a[0] != '0'):
        execscript(' '.join(a[1:]))
        elseflag = False
    else:
        elseflag = True