Summary
This article covers the contains command.
Description
This command checks for the existence of a specific value in a multiple value question by comparing the selected answers to a string. The command will return ‘true’ if the string matches one of the selected answers in the multi-value question. For other question types or when comparing only string values, the stringContains command can be used.
Attributes
- none
Parameters
- one question command
- one string command
Example
<script scriptId="AECheck">
<body>
<s:alert>
<s:expression>
<s:or>
<s:not>
<s:isSet/>
</s:not>
<s:ne>
<s:numberPath path=":value"/>
<s:number value="2"/>
</s:ne>
<s:contains>
<s:question path="/ds4.dsdecodn_et"/>
<s:string value="Adverse Event"/>
</s:contains>
</s:or>
</s:expression>
<s:correction>
<s:string value="optional"/>
</s:correction>
<s:text>
<s:string value="Action taken is Drug Withdrawn, however Completion Status
primary reason for study discontinuation is not Adverse Event. Please
clarify."/>
</s:text>
</s:alert>
</body>
<target typeId="aeacnn" when="preprocess" shouldReconcile='true' />
<dependent path="/ds4.dsdecodn_et"/>
</script>Need more help?
Please visit the Fountayn Contact Information page.