Skip to content

Computed profile fields #223

Answered by atompie
atompie asked this question in Use cases
Discussion options

You must be logged in to vote

Solution implemented in 0.6.0

Calculator

This plugin performs simple operations such as add, subtract, divide, and multiply. Arguments of those operations may be
values from payload, profile, etc. The result is returned as an object of new values.

Each operation must be in separate row. Operations may share variables.

Example 1

profile@traits.private.interests.sports =  profile@traits.private.interests.sports / payload@time_passed

This calculation will divide the value from profile that is located in traits.private.interests.sports by the number
provided in payload (time_passed). Value of time_passed can be a time that passed from the last visit. The above
equation will return the follow…

Replies: 3 comments

Comment options

atompie
Nov 29, 2021
Maintainer Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

atompie
Dec 11, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by atompie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants