Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
22 lines (21 sloc) 473 Bytes
metadata:
title: Whether variable is defined
documentation: "https://docassemble.org/docs/functions.html#defined"
---
question: Summary
subquestion: |
Your favorite fruit is
${ favorite_fruit }.
% if defined('favorite_vegetable'):
Your favorite vegetable
is ${ favorite_vegetable }.
% else:
I do not know your favorite
vegetable.
% endif
mandatory: True
---
question: |
Tell me about your favorite fruit.
fields:
- Favorite fruit: favorite_fruit