The script element contains user-defined variables, functions, and objects and exposes properties related to the current session.
script.completed
script.currentBlock
script.currentBlockNumber
script.currentExpt
script.currentTime
script.currentTrial
script.currentTrialNumber
script.elapsedTime
script.elapsedTimeMicro
script.fileName
script.fullPath
script.groupAssignmentCode
script.groupId
script.sessionId
script.startDate
script.startTime
script.subjectId
script.trialCount
script.name
script.typeName
The script object is a built-in object and can also be explicitly declared in a script. It exposes a number of useful properties, however, that can be referenced in expressions throughout the script. It also serves as a place for user-defined variables, functions, and objects that can be used elsewhere in the script.