def if_(*args):
for i in range(<NUM_LIT:0>, len(args) - <NUM_LIT:1>, <NUM_LIT:2>):<EOL><INDENT>if args[i]:<EOL><INDENT>return args[i + <NUM_LIT:1>]<EOL><DEDENT><DEDENT>if len(args) % <NUM_LIT:2>:<EOL><INDENT>return args[-<NUM_LIT:1>]<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
Implements the 'if' operator with support for multiple elseif-s.