|
Post by sashaworld on Sept 17, 2024 0:31:11 GMT
Hello, guys.
Could you please advise if its possible to have IF in feedback? Or how else i can show different feedback bitmaos?
I have 10 small tasks and then depending on percentage correct responses I want to show different Bitmaps (out of 3).
Can you give me suggestions how can i do that (i have shorten the code so its easier to understand).
bitmaps
[here bitmaps are listed]
table main
['condition' bitmap 1 or 2]
table train
['condition' bitmap 1 or 2]
task main keys q p
table main
show bitmap fixpoint
delay 600
clear 1
show bitmap @2
readkey @3 3000
if STATUS == CORRECT
show bitmap correct delay 500
clear screen
fi
if STATUS != CORRECT
show bitmap no
delay 500
clear screen
fi
if BLOCKNUMBER == 2
save BLOCKNAME STATUS BLOCKNUMBER
fi
task train
[same as task main]
block train
[...]
block main
message instr_main
tasklist
main 10
end
feedback #############THIS FEEDBACKS PERFECTLY WORKS BUT
set &Answer perc; select c2 == 1
text color black text 0 -0 &Answer; prefix "Your score is" ; postfix "%"
end ############# THE FOLLOWING DOEN'T
feedback
set &Answer perc; select c2 == 1 if &Answer < 33
show bitmap fb_0_33
fi if &Answer >= 33 && &Answer < 66
show bitmap fb_33_66
fi if &Answer >= 66
show bitmap fb_60_100
fi
end
blockorder
train
main
|
|
|
Post by PsyToolkit on Sept 27, 2024 19:39:36 GMT
This more sophisticated feedback that you would like won't work.
In the "feedback" section, you cannot have bitmaps. You can also not have "if" sections. The only things you can do are in the PsyToolkit relatively simple.
You can show text, you can set a variable. It is very basic.
For more sophisticated feedback, I would write a separate "task" and use the data via global variables.
|
|
|
Post by sashaworld on Oct 3, 2024 12:48:38 GMT
Thank you for the explanation!
|
|