Expand my Community achievements bar.

Adobe Journey Optimizer Community Lens 7th edition is out.
SOLVED

AJO Helper Functions

Avatar

Level 4

HI ALL  @SatheeskannaK  @dugganab @arpan-garg @Anuhya-Y @akshaaga 
We are trying to use the event attribute with the help of contextual attribute in the below IF ELSE condition in expression fragment  and this "1141761358" is not letting us to validate the expression Can you let us know is ther is any  walkaround for that or there is any syntictaial error Can you please let us know 


{%#if context.journey.events.1141761358._abc.individualId.equals("hello",false)%}

render_1

{%else%}

{%/if%}


error
Invalid syntax Error in parsing PQL expression "context.journey.events.1141761358._abc.individualId.equals("hello",false)": line 1:22 mismatched input '.1141761358' expecting {<EOF>, '*', '/', '%', '+', '-', '(', '.', '[', '>', '>=', '<', '<=', '!=', '?:', '=', And, Or, Occurs, In, Like, Matches, 'notIn'}. Error beginning at position: Line 2, Character 4

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 2

try the below:

{%#if notEqualsIgnoreCase(context.journey.events.`1141761358`._abc.individualId,"hello") %}

render_1

{%else%}

render 2

{%/if%}

View solution in original post

4 Replies

Avatar

Employee

You can use something on the following lines


{%#if equalsIgnoreCase(context.journey.events.`1141761358`._abc.individualId,"hello") %}

render_1

{%else%}

default_content

{%/if%}

Avatar

Level 4

this will check the the if condition is equal to hello then it will pass only 

Avatar

Correct answer by
Level 2

try the below:

{%#if notEqualsIgnoreCase(context.journey.events.`1141761358`._abc.individualId,"hello") %}

render_1

{%else%}

render 2

{%/if%}

Avatar

Administrator

Hi @MYSTERIOUSMAN,

Were you able to resolve this query with the help of the given solutions or do you still need more help here? Do let us know. In case the given solutions were helpful, then kindly choose the one that helped you the most as the 'Correct Reply'.
Thanks!



Sukrity Wadhwa