Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
docassemble/docassemble_base/docassemble/base/data/questions/examples/update-terms.yml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
35 lines (35 sloc)
847 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
metadata: | |
title: Update Vocabulary | |
short: Vocabulary | |
documentation: "https://docassemble.org/docs/functions.html#update_terms" | |
example start: 1 | |
example end: 2 | |
--- | |
terms: | |
- creeper: | | |
A tall green creature that explodes if | |
you get too close. | |
- zombie pigman: | | |
A harmless creature who carries a gold | |
sword. | |
--- | |
mandatory: True | |
code: | | |
update_terms({'zombie pigman': 'A nether dweller', 'nether': 'The underworld'}) | |
--- | |
question: Have you ever met a {creeper}? | |
subquestion: | | |
If you have met a {zombie pigman} in the {nether}, you | |
have almost certainly met a {creeper}. | |
yesno: met_a_creeper | |
--- | |
question: | | |
Thank you for telling me about your | |
creeper experience. | |
subquestion: | | |
% if met_a_creeper: | |
You are not a noob! | |
% else: | |
You clearly need to play more Minecraft. | |
% endif | |
mandatory: True |