[[put()]]
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:create:functions:put [13.01.2015 15:34] – [Example: Advanced Filter] alexander.ritteren:create:functions:put [16.01.2015 19:07] – [Example: Calculations] alexander.ritter
Line 49: Line 49:
 </code> </code>
  
-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('AB03_01') > 100) { if (value('AB03_01') > 100) {
-  question('FU03');  // question for people who rate the construct with a higher extent +  question('FU03');  // question for people who rate the construct higher on the scale
 } elseif (value('AB03_01') > 50) { { } elseif (value('AB03_01') > 50) { {
-  question('FU02');  // Frage für Personen mit mittlerer Ausprägung beim Konstrukt+  question('FU02');  // question for people who rate the construct averagely on the scale
 } else { } else {
-  question('FU01');  // Frage für Personen mit geringer Ausprägung beim Konstrukt+  question('FU01');  // question for people who rate the construct lower on the scale
 } }
 </code> </code>
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 "KD01") __and__ that the current order has not yet been delivered (answer 1 to 3 in selection question "KD02").  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 "KD01") __and__ that the current order has not yet been delivered (answer 1 to 3 in selection question "KD02"). 
  
-Of course, the [[:en:create:filters|filter]] could be repeated on each page with different questions -- on the one hand, however, this is unnecessarily complicated, and, on the other hand, the split between new and existing customers is needed in the analysis anyway. Therefore, the difference should be saved in the internal variable "KD03_01".+Of course, the [[:en:create:filters|filter]] could be repeated on each page with different questions -- on the one hand, however, this is unnecessarily complicated, and, on the other hand, the distinction between new and existing customers is needed in the analysis anyway. Therefore, the this should be saved in the internal variable "KD03_01".
  
 <code php> <code php>
Line 77: Line 77:
 </code> </code>
  
-The saved code can be used straightforwardly for filters on later pages+The saved code can be used on later pages for filters with no hassle.
  
 <code php> <code php>
en/create/functions/put.txt · Last modified: 11.02.2024 07:38 by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki