up Inquisit Language Reference

script object

The script element contains user-defined variables, functions, and objects and exposes properties related to the current session.

Attributes

<script>
This element has no attributes
</script>

Properties

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

Functions

script.abort
script.debugBreak
script.debugTrace

Remarks

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.

Examples


Copyright Millisecond Software, LLC. All rights reserved.