Skip to content

Instantly share code, notes, and snippets.

@ddailey
Created March 12, 2012 19:51
Show Gist options
  • Save ddailey/2024306 to your computer and use it in GitHub Desktop.
Save ddailey/2024306 to your computer and use it in GitHub Desktop.
evaluate expression
<input code="totalVisits,totalPurchaseAmount">
<evaluate-expression>
<expression><![CDATA[ totalPurchaseAmount / totalVisits ]]></expression>
<assign-user-attribute code="average-spend"/>
</evaluate-expression>
</input>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment