SassSheetEvaluator evaluator = new SassSheetEvaluator(new JavaStringInterpolator());
evaluator.addFunction("formatProperty", new IFunction() {
public IPropertyValue evaluate(List<IPropertyValue> params)
throws EvaluationException {
if ("test".equals(((DefaultPropertyValue) params.get(0)).getValue())) {
return new NumberPropertyValue("3");
} else if ("title".equals(((DefaultPropertyValue) params.get(0)).getValue())) {
return new DefaultPropertyValue("2");
} else {
return new DefaultPropertyValue("1");
}