boolean (AntDomElement element) { final String ifProperty = getAttributeValue(element, "if"); if (ifProperty != null && PropertyResolver.resolve(element.getContextAntProject(), ifProperty, element).element() == null) { return false; } final String unlessProperty = getAttributeValue(element, "unless"); if (unlessProperty != null && PropertyResolver.resolve(element.getContextAntProject(), unlessProperty, element).element() != null) { return false; } return true; }