Permalink
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (33 sloc) 667 Bytes
metadata:
title: Re-ask a question with del
example start: 3
example end: 3
documentation: "https://docassemble.org/docs/functions.html#force_ask"
---
modules:
- docassemble.base.util
---
question: |
Are you a communist?
yesno: user_is_communist
---
mandatory: True
code: |
if user_is_communist and user_reconsidering_communism:
user_reconsidering_communism = False
del user_is_communist
---
question: |
I suggest you reconsider your
answer.
field: user_reconsidering_communism
---
question: |
% if user_is_communist:
I am referring your case to
Mr. McCarthy.
% else:
I am glad you are a true
American.
% endif
mandatory: True