I just took a look at PST's DualTask example
myself. It essentially runs a task within a task,
i.e., secondary List/Proc stimuli within a
primary (and static) List/Proc stimulus, with
stimuli overlaid by means of TextDisplay Frame attributes.
(Also note that their code contains yet another
example of poor programming practice. The CheckTime inline uses the line
If Clock.Read >= LngEndTime OR LngEndTime-Clock.Read <= 500 Then
First, it is poor practice to use Clock.Read more
than once in a logical test, since technically it
will have a different value for each test; best
to store Clock.Read to an intermediate variable
and then test with that variable. Then of course
(LngEndTime-Clock.Read <= 500) is logically
equivalent to (Clock.Read >= LngEndTime-500), and
whenever (Clock.Read >= LngEndTime-500) then it
is also true that (Clock.Read >=
LngEndTime). Thus the two tests are superfluous,
and that line should be reduced to simply
If Clock.Read >= LngEndTime - 500 Then
which solves both issues. In general, keep a
wary eye out when looking at PST examples, they
are rife with poor programming practices and mistakes.)