This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:create:functions:put [13.01.2015 15:34] – [Example: Advanced Filter] alexander.ritter | en:create:functions:put [16.01.2015 19:07] – [Example: Calculations] alexander.ritter | ||
---|---|---|---|
Line 49: | Line 49: | ||
</ | </ | ||
- | Determining the scale index even during the survey is particularly useful if you want to inform the participant of the result, or if it is required for a filter: | + | Determining the scale index during the survey is particularly useful if you want to inform the participant of the result, or if it is required for a filter: |
<code php> | <code php> | ||
if (value(' | if (value(' | ||
- | question(' | + | question(' |
} elseif (value(' | } elseif (value(' | ||
- | question(' | + | question(' |
} else { | } else { | ||
- | question(' | + | question(' |
} | } | ||
</ | </ | ||
Line 67: | Line 67: | ||
The following example is taken from a questionnaire that shows different questions at several points for new customers and existing customers. A new customer distinguishes himself by showing that he is yet to have bought anything (answer 1 in selection question " | The following example is taken from a questionnaire that shows different questions at several points for new customers and existing customers. A new customer distinguishes himself by showing that he is yet to have bought anything (answer 1 in selection question " | ||
- | Of course, the [[: | + | Of course, the [[: |
<code php> | <code php> | ||
Line 77: | Line 77: | ||
</ | </ | ||
- | The saved code can be used straightforwardly for filters | + | The saved code can be used on later pages for filters with no hassle. |
<code php> | <code php> |