Summary
This command returns the largest value from all the values provided. The Max Command accounts for only set values. For example, if you have a set where two values are set and one is not, the command will simply return the maximum value in the subset of the two set values.
Attributes
- none
Parameters
- two or more number commands
Example
<script scriptId="largestNum">
<body>
<s:assign>
<s:question path=".largestNum"/>
<s:max>
<s:numberPath path=".num1:value"/>
<s:numberPath path=".num2:value"/>
<s:numberPath path=".num2:value"/>
</s:max>
</s:assign>
</body>
<target typeId="num1" when="preprocess" shouldReconcile='true' />
<target typeId="num2" when="preprocess" shouldReconcile='true' />
<target typeId="num3" when="preprocess" shouldReconcile='true' />
</script>Need more help?
Please visit the Fountayn Contact Information page.