|
Post by barbaraacker on Oct 9, 2024 15:10:17 GMT
Hi,
Could someone tell me why the text color based on "&mean_rticon > 1500" prevents the experiment from compiling? There's no error message, it just won't compile. It's fine if I remove the 3 lines concerning text color red. I want all of the text to appear in red if average reaction time falls below 1500ms.
Thanks!
if $iconresp == CORRECT
text color green
show text "CORRECT EEI!" -400 -400
delay 500
set &correct_countEEI increase #for average accuracy
set &sum_rticon increase RT # for average reaction time
set &mean_rticon expression &sum_rticon / &correct_countEEI
clear -1
fi
set &eeipercorr expression (&correct_countEEI/&numb_trials)*100 #percent correct if &mean_rticon > 1500
text color red
fi
show text &eeipercorr -400 -450
show text "%" -375 -450
show text &mean_rticon -400 -385
show text "ms" -360 -385
show text "Trial #" -400 -355
show text &numb_trials -360 -355
|
|
|
Post by barbaraacker on Nov 7, 2024 14:24:43 GMT
I solved this problem by displaying a red bitmap instead of having the text in red. But I'm still wondering why the text color won't work!
|
|