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
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
try the below:
{%#if notEqualsIgnoreCase(context.journey.events.`1141761358`._abc.individualId,"hello") %}
render_1
{%else%}
render 2
{%/if%}
You can use something on the following lines
{%#if equalsIgnoreCase(context.journey.events.`1141761358`._abc.individualId,"hello") %}
render_1
{%else%}
default_content
{%/if%}
Views
Replies
Total Likes
this will check the the if condition is equal to hello then it will pass only
Views
Replies
Total Likes
try the below:
{%#if notEqualsIgnoreCase(context.journey.events.`1141761358`._abc.individualId,"hello") %}
render_1
{%else%}
render 2
{%/if%}
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!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies