Summary
This command returns true if the parameter specified exists. It is typically used to check for the existence of a form in a subject record, and will return false if that form has not yet been created or has been deleted.
Attributes
- none
Parameters
- one command
Example
For alerts that are checking values on dependent questions/forms that may not yet exist (are created by scripts), the alert must be programmed using a script rather than a traditional dependency expression. This triggers the logic to re-evaluate if the dependent form is created and answered at a later date.
<script scriptId="karnofskyCheckFinalRunIn1"> <body> <s:alert> <s:expression> <s:or> <s:not> <s:exists> <s:form path="/runIn1RS2/peVsRunInRS2"/> </s:exists> </s:not> <s:not> <s:isSet> <s:question> <s:question path="/runIn1RS2/peVsRunInRS2.karnofsc"/> </s:question> </s:isSet> </s:not> <s:not> <s:isSet/> </s:not> <s:ne> <s:stringPath path="/runIn1RS2/ieRS2.inc13:value"/> <s:string value="y"/> </s:ne> <s:gte> <s:numberPath path="/runIn1RS2/peVsRunInRS2.karnofsc:value"/> <s:number value="60"/> </s:gte> </s:or> </s:expression> <s:correction> <s:string value="optional"/> </s:correction> <s:text> <s:string value="The 'Karnofsky score' entered is less than 60%. Please clarify the 'Karnofsky score' or the response to this Inclusion. Criteria."/> </s:text> </s:alert> </body> <target typeId="inc13" when="preprocess" shouldReconcile='true' /> <dependent path="/runIn1RS2/peVsRunInRS2.karnofsc"/> </script>
Need more help?
Please visit the Fountayn Contact Information page.