Difference between revisions of "MAX - Return the maximum (Reports & Settings Report Generator function)"

From Catalyst
Jump to: navigation, search
(Updated from revision control)
(Updated from revision control)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
== Syntax ==
 
== Syntax ==
  '''$MAX'''{limit1, limit2}
+
  '''$MAX'''{limit1, limit2, limit3, limit4, limit5, limit6, limit7, limit8, limit9, limit10}
  
 
== Description ==
 
== Description ==
Return the larger of the two given parameters.
+
Return the largest of the given parameters.
  
 
== Parameters ==
 
== Parameters ==
Line 13: Line 13:
 
:A text or numeric parameter that can not be omitted.
 
:A text or numeric parameter that can not be omitted.
 
:The second item to compare.
 
:The second item to compare.
 +
;limit3
 +
:A text or numeric parameter that can not be omitted.
 +
:The third item to compare.
 +
;limit4
 +
:A text or numeric parameter that can not be omitted.
 +
:The fourth item to compare.
 +
;limit5
 +
:A text or numeric parameter that can not be omitted.
 +
:The fifth item to compare.
 +
;limit6
 +
:A text or numeric parameter that can not be omitted.
 +
:The sixth item to compare.
 +
;limit7
 +
:A text or numeric parameter that can not be omitted.
 +
:The seventh item to compare.
 +
;limit8
 +
:A text or numeric parameter that can not be omitted.
 +
:The eighth item to compare.
 +
;limit9
 +
:A text or numeric parameter that can not be omitted.
 +
:The ninth item to compare.
 +
;limit10
 +
:A text or numeric parameter that can not be omitted.
 +
:The tenth item to compare.
  
 
== Returns ==
 
== Returns ==
 
A text or numeric (depending on the parameters) value.
 
A text or numeric (depending on the parameters) value.
Will return the larger of the two parameters given.
+
Will return the largest of the parameters given. From 1 up to 10 parameters may be given.  
  
 
[[Category:Reports & Settings Report Generator functions]]
 
[[Category:Reports & Settings Report Generator functions]]

Revision as of 05:56, 4 July 2017

Syntax

$MAX{limit1, limit2, limit3, limit4, limit5, limit6, limit7, limit8, limit9, limit10}

Description

Return the largest of the given parameters.

Parameters

limit1
A text or numeric parameter that can not be omitted.
The first item to compare.
limit2
A text or numeric parameter that can not be omitted.
The second item to compare.
limit3
A text or numeric parameter that can not be omitted.
The third item to compare.
limit4
A text or numeric parameter that can not be omitted.
The fourth item to compare.
limit5
A text or numeric parameter that can not be omitted.
The fifth item to compare.
limit6
A text or numeric parameter that can not be omitted.
The sixth item to compare.
limit7
A text or numeric parameter that can not be omitted.
The seventh item to compare.
limit8
A text or numeric parameter that can not be omitted.
The eighth item to compare.
limit9
A text or numeric parameter that can not be omitted.
The ninth item to compare.
limit10
A text or numeric parameter that can not be omitted.
The tenth item to compare.

Returns

A text or numeric (depending on the parameters) value. Will return the largest of the parameters given. From 1 up to 10 parameters may be given.