public String mergeConditions(String condition1, String condition2, String operator) {
        if (condition1 != null) {
            if (condition2 == null) {
                return condition1;
            } else {
                String mergedCondition = "(" + condition1 + ") " + operator + " (" + condition2 + ")";
                return mergedCondition;
            }
        } else {
            return condition2;
        }
    }
Merges 2 conditions with the given operator

@param condition1 the first condition
@param condition2 the second condition
@param operator the operator {@literal ("&&" or "||&)}
@return the merged condition
jme3-core/src/plugins/java/com/jme3/material/plugins/ShaderNodeLoaderDelegate.java