<< Click to Display Table of Contents >> Navigation: Reference Manual > Windows and dialog boxes > User Controls > Arithmetic definition user control |
This user control appears in variables where an arithmetic definition is needed to define a calculated value.
It has the following tab pages:
If set then any undefined values (missing or filtered past) referred to in the arithmetic will be treated as zero.
This switch should normally be used if any of the entries referred to will be filtered or empty. If it is not set and any of the entries are missing then the calculated value will also be undefined (missing).
This button is used to create a value that is the number of responses selected by each respondent to a particular multi-coded question or variable, using Entry choose.
This button is used to create a value that is the score value from the response selected by each respondent to a particular single-coded question or variable, using Entry choose.
This button is used to select a list of entries with a value using Entry choose. This variable will be set to the smallest value found in any of these entries. Entries in the list can be single-coded, integer, float, date or time.
Any entries that are undefined will be ignored. If all the entries are undefined then the result stored will be undefined. The "treat undefined as zero" setting has no effect on min() and max() functions.
Single-coded entries have a value of the response number selected. Empty single-coded entries are treated as a value 0 unless there is a supplemental reject response in which case the response number of the reject response will be used.
This button is used to select a list of entries with a value using Entry choose. This variable will be set to the largest value found in any of these entries. Entries in the list can be single-coded, integer, weight, date or time.
Any entries that are undefined will be ignored. If all the entries are undefined then the result stored will be undefined. The "treat undefined as zero" setting has no effect on min() and max() functions.
Single-coded entries have a value of the response number selected. Empty single-coded entries are treated as a value 0 unless there is a supplemental reject response in which case the response number of the reject response will be used.
New users are advised to use the "Values" tab page to define arithmetic definitions until they are familiar with the syntax required.
This describes the calculation to perform.
For an introduction, see User Guide, Project components, Arithmetic definition.
For details on the syntax used, see Definitions, Arithmetic definitions.
Arithmetic definitions may be typed in upper or lower case and you may leave spaces (blanks) where you like.
Text that describes the definition is shown and can be changed.
If you modify the definition then the text will change to represent the new definition. There is a lock button to prevent the text being replaced when the definition is changed.
You can use a special undo button to restore the text to one that was displayed previously without altering the definition.
This tab contains a list of the values (entries or constants) that make up the logic definition. The list contains entries, constants, arithmetic operators and priority markings.
There are buttons to insert new entries or constants and to edit values that are already in the list. Entries are added and changed with Entry choose.
Priority markers can be added or removed by selecting two or more values.
If the arithmetic definition contains more than one value, a pictorial representation of the order of processing is shown.
Other relevant topics will depend on which window you are using at the time:
For general help on the Entry details window, see Entry details overview and the Entry details toolbar.
For details about the body of this window, see Entry details variable.
This window enables you to create or amend a response in a variable entry.