opendap/src/main/java/opendap/servers/ClauseFactory.java
public TopLevelClause newBoolFunctionClause(String functionName,
                                                List children)
            throws DAP2ServerSideException,
            NoSuchFunctionException {

        BoolFunction function =
                functionLibrary.getBoolFunction(functionName);
        if (function == null) {
            if (functionLibrary.getBTFunction(functionName) != null) {
                throw new NoSuchFunctionException
                        ("The function " + functionName +
                                "() does not return a " +
                                "boolean value, and must be used in a comparison or " +
                                "as an argument to another function.");
            } else {
                throw new NoSuchFunctionException
                        ("This server does not support a " +
                                functionName + "() function");
            }
        }
        return new BoolFunctionClause(function,
                children);
    }
public TopLevelClause newBoolFunctionClause(String functionName,
                                                List children)
            throws DAP2ServerSideException,
            NoSuchFunctionException {

        BoolFunction function =
                functionLibrary.getBoolFunction(functionName);
        if (function == null) {
            if (functionLibrary.getBTFunction(functionName) != null) {
                throw new NoSuchFunctionException
                        ("The function " + functionName +
                                "() does not return a " +
                                "boolean value, and must be used in a comparison or " +
                                "as an argument to another function.");
            } else {
                throw new NoSuchFunctionException
                        ("This server does not support a " +
                                functionName + "() function");
            }
        }
        return new BoolFunctionClause(function,
                children);
    }
Generates a clause which invokes a function that returns a
boolean value.

@see BoolFunctionClause