laiamt

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: Problems running experiment & downloading results #9884
    laiamt
    Participant

    Everything is working well now!
    Thanks!
    Laia

    in reply to: Displaying texts in columns #9858
    laiamt
    Participant

    Thanks!

    in reply to: Problems downloading results #9740
    laiamt
    Participant

    Hi again,
    I’ve actually just tried with a different computer and I was able to download everything, so please ignore my question.
    Best,

    Laia

    in reply to: Updating checkbox scale conditionally #9643
    laiamt
    Participant

    Wonderful! Thanks!

    in reply to: Conditionals/display logic #9637
    laiamt
    Participant

    Thanks a lot!

    in reply to: Shuffling audio and text elements consistently #9625
    laiamt
    Participant

    Ah, I see, thank you so much!

    laia

    in reply to: Shuffling audio and text elements consistently #9622
    laiamt
    Participant

    Hi Jeremy,
    Thanks a lot!
    This works perfectly. However, I’ve tried to minimally change your code to embed it in a template. When I do this, the sentences get printed twice; the first time vertically and not necessarily in the appropriate order. In addition, all the items of the trial are played in the same order (either all audio1 before all audio2, or the other way round).
    I’ve tried removing print() after newCanvas(“frases”, 800, 400), but then the order of the audios and texts is not always consistent. Any tips on how to solve this? Apologies if this is too much to ask.

    Link: https://farm.pcibex.net/r/sZHLPW/

    Template("items.csv", row =>
    newTrial("practice1,
             newText("context_practice1",row.context)
            .print()
    ,
        newButton("go", "go")
           .print()
            .wait()
            ,
    
        oneFirst = (Math.random()>=0.5)
        ,
        newAudio("audio1", row.file_oi),
        newAudio("audio2", row.file_eh),
        newText("sentence1", row.sentence_oi),
        newText("sentence2", row.sentence_eh)
        ,
        newCanvas("frases", 800, 400).print() //I've tried removing this print()
        ,
        getText(oneFirst?"sentence1":"sentence2").print(  0,0,getCanvas("frases")),
        getAudio(oneFirst?"audio1":"audio2").play().wait()
        ,
        getText(oneFirst?"sentence2":"sentence1").print(400,0,getCanvas("frases")),
        getAudio(oneFirst?"audio2":"audio1").play().wait()
        ,
        newSelector("choice")
            .add( getText("sentence1") , getText("sentence2")  )
            .log()
            .wait()
    )
    .log("startWith", oneFirst?1:2) // log which sentence came first
    )
    in reply to: Conditionals/display logic #9621
    laiamt
    Participant

    Hi Jeremy,
    Thanks, that’s very helpful.

    By ‘selecting at least oi’, I mean that if they select ‘oi’, they should proceed with the experiment, regardless of whether they also chose other options. So they should proceed, if they select only ‘oi’, if they select ‘oi’ and ‘fa’, if they select ‘oi, ‘fa’, ‘no’, etc…. Is there any way to do this?

    Thanks again,

    Laia

    in reply to: Conditionals/display logic #9614
    laiamt
    Participant

    Hi Jeremy,
    I have a similar question to the one above. In my case, I have a checkbox scale. If participants select (at least), the third option, they should proceed to the rest of the experiment. If they don’t, they should only see the last screen.

    In my attempt, however, the experiment ends after the participants select any of the options of the scale.
    I include the code and the demonstration link below.

    Any help will be greatly appreciated.

    Best,
    Laia

    
    Sequence( "pretest", "exp", SendResults(), "end")
    
    newTrial("pretest",
        newScale("input_tag1", "eh", "no", "oi", "fa") .checkbox().log().vertical().print(),
        newVar("tag1").global().set(getScale("input_tag1")),
        newButton("go", "Endavant") .print() .wait()
    )
    
    newTrial("exp",
        getVar("tag1").test.is(oi).success(
            newText("instrus1", "You selected 'oi'!.") .print(),
            newButton("go", "Endavant") .print() .wait()
        )
    )
    
    newTrial("end",
             newText("end1", "We are done") .print(),
        newButton().wait()
    )
    

    Demonstration link: https://farm.pcibex.net/r/IvVKNg/

Viewing 9 posts - 1 through 9 (of 9 total)