Skip to content
Discussion options

You must be logged in to vote

Hi @LeslieHeld,

I recommend using the data parameter to tag the choice trial with some kind of unique identifier and then use the .filter() method when you want to grab the data.

var choice = {
	data: {phase: 'choice'}
}

var loop_node = {
	loop_function: function(){
		jsPsych.data.get().filter({phase: 'choice'}).values()[0].choice
	}
}

I'm not quite sure which on_finish you are referring to in the second part of your question.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Nega100
Comment options

@jodeleeuw
Comment options

@Nega100
Comment options

@jodeleeuw
Comment options

Answer selected by jodeleeuw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants