Object
Name of a data object whose content will be compared with the content of the elements of the set. If the content is the same, the corresponding element will be removed from the set.
Example for removing elements from sets
PICTURE A N
PICTURE B N
PICTURE 1 N
PICTURE 2 N
PICTURE RndPic T ; Picture with dummy content
SET Letters V A B ; Set of letters
SET Total V A B 1 2 ; Total set
; This trial first displays one letter and
; then three random symbols are displayed
; One of them must be the same letter
; because the other letter was removed before
; and all three remaining elements from the set are displayed
TRIAL Sternberg
DE Letters RndPic ;Assign random letter to RndPic
RE Total RndPic ;Remove element with same content from set Total
DE Letters RndPic ;Draw next random letter from Letters
SP RndPic MidPos 1 1000 ;Show random letter as target
CS
RK ResKeys ;Activate response registration
DE Total RndPic ;Draw first symbol from set Total
SP RndPic MidPos 1 1000 ;Display this random symbol
DE Total RndPic ;Draw second symbol from set Total
SP RndPic MidPos 1 1000 ;Display this random symbol
DE Total RndPic ;Draw third random symbol from set Total
SP RndPic MidPos 1 1000 ;Display this random symbol
Copyright 2023 - BeriSoft Inc.
All rights reserved