Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
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