Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
24 lines (24 sloc) 501 Bytes
metadata:
title: Indefinite article
documentation: "https://docassemble.org/docs/functions.html#indefinite_article"
---
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)