-
Notifications
You must be signed in to change notification settings - Fork 305
Expand file tree
/
Copy pathrange.yml
More file actions
35 lines (35 loc) · 765 Bytes
/
range.yml
File metadata and controls
35 lines (35 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
metadata:
title: Range slider
short title: Range slider
documentation: "https://docassemble.org/docs/fields.html#range"
---
question: |
On a scale from 1 to 10, how
much do you like these animals?
fields:
- Possums: possum_preference
datatype: range
min: 1
max: 10
step: 0.5
- Rabbits: rabbit_preference
datatype: range
min: 1
max: 10
---
question: |
% if possum_preference > 7:
You really like possums!
% elif possum_preference > 3:
You think possums are ok.
% else:
I guess you don't really like possums.
% endif
% if rabbit_preference > 7:
You really like rabbits!
% elif rabbit_preference > 3:
You think rabbits are ok.
% else:
I guess you don't really like rabbits.
% endif
mandatory: True