Summary
This article covers the abs command.
Description
This command gets the absolute value from the provided number.
Attributes
- none
Parameters
- one number command
Example
<script scriptId="absVal2">
<body>
<s:alert>
<s:expression>
<s:or>
<s:not>
<s:isSet>
<s:question>
<s:question path=".mncktime"/>
</s:question>
</s:isSet>
</s:not>
<s:not>
<s:isSet>
<s:question>
<s:question path=".crcktime"/>
</s:question>
</s:isSet>
</s:not>
<s:lte>
<s:abs>
<s:dateDiff unit="minute" method="integer">
<s:from>
<s:datePath path=".mncktime:value"/>
</s:from>
<s:to>
<s:datePath path=".crcktime:value"/>
</s:to>
</s:dateDiff>
</s:abs>
<s:number value="5"/>
</s:lte>
<s:not>
<s:isSet>
<s:question>
<s:question path=".naadhu"/>
</s:question>
</s:isSet>
</s:not>
</s:or>
</s:expression>
<s:correction>
<s:string value="optional"/>
</s:correction>
<s:text>
<s:string value="The absolute difference between the 'ECG Monitor'
and 'Control Room Clock' is greater than 5 minutes, yet 'N/A' is checked.
Please verify."/>
</s:text>
</s:alert>
</body>
<target typeId="naadhu" when="preprocess" shouldReconcile='true' />
<dependent path="/summary/ecgReport[n].mncktime"/>
<dependent path="/summary/ecgReport[n].crcktime"/>
</script>Need more help?
Please visit the Fountayn Contact Information page.