Calculation (question type)
mmaness edited this page Jan 11, 2013
·
2 revisions
A psuedo-question which performs some calculations at some point in the order of logic for a survey.
Calculation Name block end
-
Name - the name of the question, must follow the rules for constants (capitalized name)
- block - the block contains expressions, assignments, and control flow statements.
- end - you must terminate a block of calculations with the keyword end.
This question type corresponds to a block of executable code (e.g. expressions, assignments).
Calculation TimeCalculations
current_time = DepartTime
# Calculating the early and late departures by changing departure time by +/- 30 minutes
early_depart = current_time - 30
late_depart = current_time + 30
end
- calculation. A question trait which allows for calculations to be executed before or after a question is rendered.
Go back to Question Types
Home | JULIE Intro | Getting Started with JULIE | JULIE References | JULIE Development | Survenity Language