Group: Forum Members
Posts: 62,
Visits: 212
|
Hi I am having a problem whereby I want to branch in my study if the currenttime is over a certain value:
e.g.
<trial Blockertrial> / ontrialbegin = [values.currenttime = script.currenttime] / stimulustimes = [1=Blocker] / trialduration = 5000 / branch = [if (values.currenttime >= 11:56:01) surveypage.sliders] </trial>
but inquisit is not liking the "11:56:01" part ("Expression contains unknown element or property name".)
It's got me thinking - how can I use this figure with colons etc as a value? I thought that as perhaps it is a string, I could somehow remove the colons, and convert it to an integer somehow.
I tried using one of the functions: replaceall("<% values.currenttime %>", ":", "") but Inquisit doesn't 'see' the value rather just the actual characters (the greater than sign, the percentage sign and the letters)
Would greatly appreciate a response on this as I'm up against a deadline and can't figure this out! Thanks in advance
|