Summary
This command returns true if the two provided parameters are equivalent.
Attributes
Parameters
Choice of one of the following:
- two boolean commands
- two date commands
- two number commands
- two string commands
- two partial date command
Example
<script scriptId="pregform"> <body> <s:if> <s:and> <s:isSet/> <s:eq> <s:numberPath path="/v01/demog.dmchild:value"/> <s:number value="0"/> </s:eq> </s:and> <s:list> <s:createForm> <s:parent> <s:form path="/v01"/> </s:parent> <s:type> <s:string value="pregser"/> </s:type> <s:alias> <s:string value="pregser1v"/> </s:alias> </s:createForm> <s:createForm> <s:parent> <s:form path="/final"/> </s:parent> <s:type> <s:string value="pregser"/> </s:type> <s:alias> <s:string value="pregserfin"/> </s:alias> </s:createForm> </s:list> </s:if> </body> <target typeId="dmchild" when="after" shouldReconcile='true' /> </script>
Merge
When using commands such as eq, lte, gt, etc. to make comparisons against questions on dynamic forms, the merge attribute must be specified. Available parameters are “or” and “and”.
Example
<script scriptId="deathReasonCheck"> <body> <s:alert> <s:expression> <s:or> <s:not> <s:eq merge="or"> <s:numberPath path="/aesum/ae[n].aeoutcme:value"/> <s:number value="6"/> </s:eq> </s:not> <s:not> <s:isSet/> </s:not> <s:eq> <s:numberPath path=".eosrsn:value"/> <s:number value="5"/> </s:eq> </s:or> </s:expression> <s:correction> <s:string value="optional"/> </s:correction> <s:text> <s:string value="The Outcome of an Adverse Event is 'Death', and the Reason for Discontinuation is not 'Subject Died'. Please review and clarify."/> </s:text> </s:alert> </body> <target typeId="eosrsn" when="preprocess" shouldReconcile='true' /> <dependent path="/aesum/ae[n].aeoutcme"/> </script>
Need more help?
Please visit the Fountayn Contact Information page.