Checking for 'undefined' variable in template #94
Answered
by
kraih
byoungdale
asked this question in
Q&A
-
I have a simple template where I am trying to check for the presence of an error message:
But, if
Is there a different way I should be doing this? |
Beta Was this translation helpful? Give feedback.
Answered by
kraih
Mar 5, 2023
Replies: 1 comment 1 reply
-
You could set |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
byoungdale
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You could set
app.defaults.err = null;
to have it always be something in templates. Or you can checkif (ctx.stash.err)
.