
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi.
I need to change token value by ifelse operator. What syntax?
For example:
From event I have token value=A, but I need to change this value for event field to value=B? I understanding that i need token operators, but not understanding right syntax. Please, help me.
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Use the __simpleMap function. There are samples in the flex connector guide.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi Mikhail,
I need more information to know exactly which operator to use but there are the available operators using to make an if then else condition, the second column is the result type.
__ifThenElse String
__ifThenElseAddress IPAddress
__ifTrueThenElse String
Or
__regexToken used with __oneOf may be used to do the same required condition (cf. pdf)
I advice you to check in this document (last version) presents on Protect724 where you will find the token operation list with clear explanation and some example following the connector type you need to set-up.
I hope this information will help you.
Thanks
Best regards
Michael

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
The syntax looks something like this:
event.fieldxxx=__ifThenElse(lookup token,comparison value,if true return this,else return this)
For Example:
event.sourceUserId=__ifThenElse(test_userid,"","Not Available",test_userid)
Basically that checks the token test_userid, and if its blank returns "Not Available" else it returns the value.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Thks.
It really helps me, Can you tell me what syntax for situation when I had 3 or more values for if.
For example
If a=b then
do 1
elseif
a=c
then
do 2
elseif
d=e
then
do 3

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Have a look at __simpleMap ... that may help you.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi.
My case:
I have one token and 4 token values, there is: 0, 1, 2, 3.
I need to change 0 to "string1", 1 to "string2", 2 to "string3". How I can do this with __ifThenElse operator? Not understand

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Use the __simpleMap function. There are samples in the flex connector guide.