add a line break to a string variable in the value element


Author
Message
halkjelsvik
halkjelsvik
Partner Member (580 reputation)Partner Member (580 reputation)Partner Member (580 reputation)Partner Member (580 reputation)Partner Member (580 reputation)Partner Member (580 reputation)Partner Member (580 reputation)Partner Member (580 reputation)Partner Member (580 reputation)
Group: Forum Members
Posts: 4, Visits: 1

I try to add line breaks to a series of strings given by the particpants.


This actually does what I want:


/ ontrialend = [values.responsestring=concat(concat(values.responsestring,"(~n) -"),openended.enterword.response)]


however I do not want the paranthesis in the values variable. If I remove the paranthesis, inquisit tells me that there is an unmatched parathesis.


Dave
Dave
Supreme Being (974K reputation)Supreme Being (974K reputation)Supreme Being (974K reputation)Supreme Being (974K reputation)Supreme Being (974K reputation)Supreme Being (974K reputation)Supreme Being (974K reputation)Supreme Being (974K reputation)Supreme Being (974K reputation)
Group: Administrators
Posts: 11K, Visits: 76K

<values>
/ responsestring = ""
/ newline = "~n"
</values>

<openended enterword>
/ stimulusframes = [1=myresponses]
/ ontrialend = [values.responsestring=concat(concat(values.responsestring,values.newline),openended.enterword.response)]
</openended>

<text myresponses>
/ items = ("<%values.responsestring%>")
/ position = (50%,10%)
/ size = (50%,20%)
</text>

<block myblock>
/ trials = [1-3=enterword]
</block>


Regards,


~Dave


halkjelsvik
halkjelsvik
Partner Member (580 reputation)Partner Member (580 reputation)Partner Member (580 reputation)Partner Member (580 reputation)Partner Member (580 reputation)Partner Member (580 reputation)Partner Member (580 reputation)Partner Member (580 reputation)Partner Member (580 reputation)
Group: Forum Members
Posts: 4, Visits: 1

Many thanks!


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search