Skip to main content

ComponentBlock

Defined in: parser/types.ts:2155

Properties​

PropertyTypeDescriptionDefined in
components(string | ComponentBlock | DynamicBlock | FactorBlock)[]The components that are included in the order.parser/types.ts:2161
conditional?booleanThe conditional property shows the block only when the URL condition matches its id.parser/types.ts:2169
id?stringThe id of the block. This is used to identify the block in the SkipConditions and is only required if you want to refer to the whole block in the condition.to property.parser/types.ts:2157
interruptions?InterruptionBlock[]The interruptions property specifies an array of interruptions. These can be used for breaks or attention checks.parser/types.ts:2165
numSamples?numberThe number of samples to use for the random assignments. This means you can randomize across 3 components while only showing a participant 2 at a time.parser/types.ts:2163
orderComponentOrderThe type of order. This can be random (pure random), latinSquare (random with some guarantees), or fixed.parser/types.ts:2159
skip?SkipConditionsThe skip conditions for the block.parser/types.ts:2167