Skip to content

Conditionally change a field #141

Answered by mbeynon
mbeynon asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like you can do it using the Tera conditionals. Was a little unclear how to test for NULL, but this seems to work:

    template:
      # prev.message can be NULL
      format: '{% if prev.message != "\N" %}NEW VALUE{% endif %}'

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@evgeniy-r
Comment options

Answer selected by mbeynon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants