[ https://issues.apache.org/jira/browse/FREEMARKER-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dekany resolved FREEMARKER-86. ------------------------------------- Resolution: Implemented Fix Version/s: 2.3.28-incubating This is now implemented in the Git repo. It's {{listableValue?min}} and {{listableValue?max}}, so the basic use case in the subject looks like {{[x, y]?min}} and {{[x, y]?max}}. (Of course as it works with any listable value, there can be more the 2 values involved, or the whole listable value can come from a variable, etc.) > min(x,y) and max(x,y) > --------------------- > > Key: FREEMARKER-86 > URL: https://issues.apache.org/jira/browse/FREEMARKER-86 > Project: Apache Freemarker > Issue Type: Improvement > Components: engine > Reporter: Vojtech Knyttl > Priority: Major > Fix For: 2.3.28-incubating > > > It would be great to have these two builtins for numbers. At the moment, I > have to create functions like: > {code} > <#function max(a, b)> > <#return (a > b)?then(a, b)> > </#function> > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)