public String parseFunction(List<String> list, IWikiModel model, char[] src, int beginIndex, int endIndex, boolean isSubst) {
if (list.size() > 1) {
String condition = isSubst ? list.get(0) : parseTrim(list.get(0), model);
if (condition.length() > 0) {
try {
DoubleEvaluator engine = new DoubleEvaluator();
double d = engine.evaluate(condition);
// if (d == 0.0) {
if (Math.abs(d - 0.0) < DoubleEvaluator.EPSILON) {
if (list.size() >= 3) {
// <else text>
return isSubst ? list.get(2) : parseTrimNewlineLeft(list.get(2), model);