<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def condition(condition=None, statement=None, _else=None, **kwargs):
 """ Run an statement if input condition is checked and return statement result. :param condition: condition to check. :type condition: str or dict :param statement: statement to process if condition is checked. :type statement: str or dict :param _else: else statement. :type _else: str or dict :param kwargs: condition and statement additional parameters. :return: statement result. """


    result = None

    checked = False

    if condition is not None:
        checked = run(condition, **kwargs)

    if checked:  # if condition is checked
        if statement is not None:  # process statement
            result = run(statement, **kwargs)

    elif _else is not None:  # else process _else statement
        result = run(_else, **kwargs)

    return result