Summary
This command returns the result of the parameters. If a division by zero is calculated the command returns the numerator.
Attributes
- none
Parameters
- two or more number commands, the first command will be the numerator and the second command will be the denominator
Example
<script scriptId="set-rate"> <body> <s:if> <s:and> <s:isSet> <s:question> <s:question path=".rr"/> </s:question> </s:isSet> <s:gt> <s:numberPath path=".rr:value"/> <s:number value="0"/> </s:gt> </s:and> <s:assign> <s:question path=".rate"/> <s:divide> <s:number value="60000"/> <s:numberPath path=".rr:value"/> </s:divide> </s:assign> <s:assign> <s:question path=".rate" /> <s:string value=""/> </s:assign> </s:if> </body> <target typeId="rr" when="preprocess" shouldReconcile='true'/> </script>
Need more help?
Please visit the Fountayn Contact Information page.