def METHOD_NAME(self, other):
    """
    The equals method.
    :param other: a different object.
    :type other: object
    :return: True if equal, otherwise False.
    :rtype: bool
    """
    if not isinstance(other, ASTForStmt):
        return False
    if self.get_variable() != other.get_variable():
        return False
    if not self.get_start_from().METHOD_NAME(other.get_start_from()):
        return False
    if not self.get_end_at().METHOD_NAME(other.get_end_at()):
        return False
    if self.get_step() != other.get_step():
        return False
    return self.get_block().METHOD_NAME(other.get_block())