Can a variant condition read the digest step variables?
can I have an email variant step, which is used if the condition is
step.total_count
greater than 2
or step.digest
Equal true
?
I tried setting it up, but nothing happened, maybe I need to use {{ }}
?
Or maybe those values are not accessible by the variant check?8 Replies
happy to share my custom code email
@Engineering can we get your help here today? 🙂
It is accessible, but only in the Value side of a condition, not in the Key. Something like this where you add the key in the payload when you trigger
![No description](https://cdn.answeroverflow.com/1201089088376287313/Screen_Shot_2024-01-28_at_10.56.32.png)
@bjornaer Do you mind sharing the custom code email content?
hi everyone, I solved it using
if
checks directly inside the custom code section, I actually solved it speaking with @Tomer Barnea on Novu's chat widget.Hi @bjornaer
Thanks for sharing the use case.
Currently, conditions based on digest variables are not supported.
Only workaround is to use if/else in step content editor as you used
DVRL-160 - docs: digest variables are not supported in conditions
Status
Triage
Assignee
Pawan Jain
DevRel
understood! thanks @Pawan Jain for clarifying and creating the issue for docs