code: def get_rendered_fields(self, ctx=None):
          '''
          :param ctx: rendering context in which the method was called
          :return: ordered list of the fields that will be rendered
          '''
          res = []
          if ctx is None:
              ctx = RenderContext()
          if self._evaluate_condition(ctx):
              ctx.push(self)
              res = super(Conditional, self).get_rendered_fields(ctx)
              ctx.pop()
          return ref get_rendered_fields(self, ctx=None):
          '''
          :param ctx: rendering context in which the method was called
          :return: ordered list of the fields that will be rendered
          '''
          res = []
          if ctx is None:
              ctx = RenderContext()
          if self._evaluate_condition(ctx):
              ctx.push(self)
              res = super(Conditional, self).get_rendered_fields(ctx)
              ctx.pop()
          return res
docs: :param ctx: rendering context in which the method was called
          :return: ordered list of the fields that will be rendered