We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the parent key non_existent_key does not exist, the print statement should print the default value string.
non_existent_key
string
For details (and some workarounds found by the community), see:
If the parent key does not exist, it throws an error.
{{ mydict.non_existent_key.var | default("string") }}
The text was updated successfully, but these errors were encountered:
I'm working on this.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Expected Behavior
If the parent key
non_existent_key
does not exist, the print statement should print the default valuestring
.For details (and some workarounds found by the community), see:
Actual Behavior
If the parent key does not exist, it throws an error.
Template Code
The text was updated successfully, but these errors were encountered: