Summary
This article covers the between command.
Description
This command determines if the first parameter falls within the second two parameters. The check is inclusive (e.g. 2 is between 2 and 3).
Attributes
Parameters
Choice of one of the following.
- three date commands
- three number commands
- three string commands
Example
<script scriptId="medHistdobConsentCk">
<body>
<s:alert>
<s:expression>
<s:or>
<s:not>
<s:isSet/>
</s:not>
<s:not>
<s:isSet>
<s:question>
<s:question path="/screening/dm.dob_"/>
</s:question>
</s:isSet>
</s:not>
<s:not>
<s:isSet>
<s:question>
<s:question path="/screening/ds.consdt_"/>
</s:question>
</s:isSet>
</s:not>
<s:between>
<s:datePath path=":value"/>
<s:datePath path="/screening/dm.dob_:value"/>
<s:datePath path="/screening/ds.consdt_:value"/>
</s:between>
</s:or>
</s:expression>
<s:correction>
<s:string value="optional"/>
</s:correction>
<s:text>
<s:string value="Medical history Date of First Diagnosis does not fall
between the Date of Birth and Date of Consent. Please clarify."/>
</s:text>
</s:alert>
</body>
<target typeId="strtdt_" when="preprocess" shouldReconcile='true' />
<dependent path="/screening/dm.dob_"/>
<dependent path="/screening/ds.consdt_"/>
</script>Need more help?
Please visit the Fountayn Contact Information page.