Summary
This command returns the number of data points associated with a user that were changed by a query.
Attributes
- None
Parameters
- None
Note: The 'when' attribute should always be set to 'after' in order for the command to work.
Example
This script returns the proportion of data points changed by a query over the user’s total data points entered if the user has entered at least 1000 data points. The value returned will range from 0-1 or 500 will be returned if the user has not entered enough data yet.
<script scriptId='customScore' > <body> <s:if> <s:gte> <s: userDataPoints /> <s:number value="1000"/> </s:gte> <s:divide> <s:userDataPointsChangedByQuery/> <s: userDataPoints /> </s:divide> <!--Score is not valid if data points < 1000 --> <s:number value="500"/> </s:if> </body> </script>
Need more help?
Please visit the Fountayn Contact Information page.