Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
en:create:functions:put [13.01.2015 15:38] – [Example: Advanced Filter] alexander.ritter | en:create:functions:put [26.09.2020 14:27] – [put()] sophia.schauer |
---|
====== put() ====== | ====== put() ====== |
| |
''void **put**(string //variable//, mixed //value//)'' | ''void **put**(string //variable//, mixed //value//, [boolean //EachVariable//])'' |
| |
The function ''put'' enables you to store a single value in the data record. ''put()'' is used when the questionnaire calculates or draws a value -- and this value is needed for the analysis. For example, if the stimulus in a question is varied at random, then which one the respondent made a statement on has to be known for the analysis. | The function ''put'' enables you to store a single value in the data record. ''put()'' is used when the questionnaire calculates or draws a value -- and this value is needed for the analysis. For example, if the stimulus in a question is varied at random, then which one the respondent made a statement on has to be known for the analysis. |
</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> |