Discrete component groups can contain variables for manipulating items within that group. Psychstudio is capable of powerful text manipulation with variables. See manipulating text with variables for a full rundown.
Variables can be imported from a CSV file by clicking Import variables to import. We recommend creating your variables in a spreadsheet (Figure 1) and saving them as CSV files rather than creating them by hand. The CSV files should be in the following format:
Variable: The name of the variable.
Type: The type of the variable. See Variable type section below for details.
Strategy: The allocation strategy of the variable. See Variable strategy section below for details.
Variables come in many different types specific to the type of discrete component group they're added to. Listed below are the types that are available for each of the discrete component groups:
color: text color (any valid HTML color see MDN web docs for full details)
inject-text: See Insert text into a text item (a.k.a. text injection, variable substitution).
background: text background color (any valid HTML color see MDN web docs for full details)
bold: bold text? (true, false)
size: font size (px)
italic: italicize text? (true, false)
underline: underline text? (true, false)
strike: strike text? (true, false)
opacity: opacity of image (%)
flip-horizontal: flip image horizontally? (true, false)
flip-vertical:flip image vertically? (true, false)
flip-horizontal-vertical: flip image horizontally and veritcally? (true, false)
rotate: rotate image (degrees)
Variables are allocated to items according to one of the following strategies
exclusive:values will only be allocated once per stimulus cycle (e.g. once a value from this variable has been allocated to an image, that value will not be available for allocation to any other image).
non-exclusive:values can be allocated zero, one or multiple times per stimulus cycle (i.e. a value from this variable can be allocated to multiple items).
Variables can be deleted by clicking on Delete variables.
WARNING: Deleting variables will remove: