def tag_if(self, condition, name):
    """
    Tag the current state of the stack if a condition matches; do noting otherwise.

    :param condition: The condition to determine if to execute the tagging operation.
    :param name: The name to use for the tagging.
    """
    if condition:
        return self.tag(name)
    else:
        return self.newObject([self.findSolid()])