Permalink
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (29 sloc) 578 Bytes
metadata:
title: Indefinite article
example start: 2
example end: 2
documentation: "https://docassemble.org/docs/functions.html#indefinite_article"
---
modules:
- docassemble.base.util
---
question: |
Would you prefer to have
${ indefinite_article(fruit) }
as opposed to
${ indefinite_article(vegetable) }?
yesno: prefer_fruit
---
question: |
% if prefer_fruit:
You would prefer the ${ fruit }
% else:
You would prefer the ${ vegetable }.
% endif
sets: all_done
---
mandatory: True
code: |
fruit = "apple"
vegetable = "squash"
need(all_done)