Comment Comment by rnhmjoj This is something I do instead of writing a long if-else: opt = {0: do_a, 1: do_b, 3: do_b, 4: do_c} opt[option]() parent rnhmjoj 12 years ago