Skip to content
Discussion options

You must be logged in to vote

Hi!

  1. One way of doing is having a setInterval running in the background in order to check changes and therefore adapt values. Otherwise you could try to code a "variable change handler" but it may be more complicated.
  2. What would you like to do with this function? As for now, the function within the function may be one reason the code is not running, you could simply have on_start: function(){ (document.getElementById("display").innerHTML = A_counter; })
    In case you want to change the value of an already existing trial/slide, you could do something like on_start: function(SLIDETOCHANGE){ (SLIDETOCHANGE.stimulus = A_counter; })

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@rMinion
Comment options

@Aodarium
Comment options

@rMinion
Comment options

Answer selected by becky-gilbert
Comment options

You must be logged in to vote
0 replies
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