Skip to content

Instantly share code, notes, and snippets.

@lvanderlinden
Created October 18, 2012 10:25
Show Gist options
  • Save lvanderlinden/3910901 to your computer and use it in GitHub Desktop.
Save lvanderlinden/3910901 to your computer and use it in GitHub Desktop.
# The response time on a given trial can be retrieved in an
# inline_script item like so:
trial_rt = self.get("response_time")
# Check whether the RT matches your criteria:
if trial_rt > 3000:
show_feedback = "yes"
else:
show_feedback = "no"
# Make the variable show_feedback available in the interface
# so that you can use it for "Run if" statements:
exp.set("show_feedback", show_feedback)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment