ng:minimum

ng:minimum

InterFormNG2 includes the special built-in XPath function, ng:minimum.

 

This function returns the smallest value of two numeric arguments.

The function only accepts two numeric arguments - no more and no less.

 

Examples:

ng:minimum(-14,2)

 returns: -14


ng:minimum(14,2)

 returns: 2

 

    • Related Articles

    • ng:dateTimeFormat

      This section desribes the built-in function ng:dateTimeFormat(xmlDateTime, dateFormat, part, locale, customErrorMessage) The function converts an XML date and time (timestamp) into the format of your choice. An alternative to this function is ...
    • ng:dateFormat

      This section explains the built-in XPath function: ng:dateFormat(dateString, inputPattern, outputPattern, locale, customErrorMessage) This function returns a formatted date string, formatted using the Java SimpleDateFormat function (like InterFormNG ...
    • Workflow for old NG templates

      Workflow for old NG templates : Please note - current versions of InterFormNG2 (3.x.x) do not support InterFormNG1 Templates anymore. If you are converting your installation from InterFormNG into InterFormNG2, then you should notice, that the ...
    • ng:decrypt

      The built-in function, ng:decrypt is linked with the encryption functions: ng:encrypt and the workflow component, Set secure workflow variable. The function, ng:decrypt() can decrypt contents, that was previously encrypted with these functions. The ...
    • ng:base64

      The built-in function, ng:base64() converts a string (text) into a base64 based string. This can e.g. be used, if you want to insert any kind of data into an XML node, without substituting any characters, that are not allowed. This function is ...