You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Vojtech Knyttl (JIRA)" <ji...@apache.org> on 2017/12/22 13:43:01 UTC

[jira] [Updated] (FREEMARKER-86) min(x,y) and max(x,y)

     [ https://issues.apache.org/jira/browse/FREEMARKER-86?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vojtech Knyttl updated FREEMARKER-86:
-------------------------------------
    Description: 
It would be great to have these two builtins for numbers. At the moment, I have to create functions like:

```
                        <#function max(a, b)>
                            <#return (a > b)?then(a, b)>
                        </#function>
```

  was:
It would be great to have these two builtins for numbers. At the moment, I have to create functions like:

                        <#function max(a, b)>
                            <#return (a > b)?then(a, b)>
                        </#function>


> 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
>
> It would be great to have these two builtins for numbers. At the moment, I have to create functions like:
> ```
>                         <#function max(a, b)>
>                             <#return (a > b)?then(a, b)>
>                         </#function>
> ```



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)