original_docstring: Evaluate the when condition and return bool.
docstring: Evaluate the when condition and return bool.
docstring_tokens: Evaluate the when condition and return bool .
code: def evaluate_if(hook_dict: dict, context: 'Context', append_hook_value: bool) -> bool:
      """Evaluate the when condition and return bool."""
      if hook_dict.get('for', None) is not None and not append_hook_value:
          # We qualify `if` conditions within for loop logic
          return True
      if hook_dict.get('if', None) is None:
          return True
      return render_variable(context, wrap_jinja_braces(hook_dict['if']))
code_tokens: def evaluate_if ( hook_dict : dict , context : 'Context' , append_hook_value : bool ) -> bool : if hook_dict . get ( 'for' , None ) is not None and not append_hook_value : return True if hook_dict . get ( 'if' , None ) is None : return True return render_variable ( context , wrap_jinja_braces ( hook_dict [ 'if' ] ) )
short_docstring: Evaluate the when condition and return bool.
short_docstring_tokens: Evaluate the when condition and return bool .
comment: """Evaluate the when condition and return bool."""$SEP$# We qualify `if` conditions within for loop logic