StartOfInterval

Creates the new event. Copies the start of each interval of the specified interval variable to the result.

Syntax

StartOfInterval(intervalVar)

Parameters

Parameter

Type

Description

intervalVar

variableReference

Reference to the interval variable

Return

Reference to the new variable.

Note

Creates the new event. Copies the start of each interval of intervalVar to the result.

Examples

Python

import nex
doc = nex.GetActiveDocument()
doc["CorrectTrialStarts"] = nex.StartOfInterval(doc["CorrectTrials"])

NexScript

doc = GetActiveDocument()
doc["CorrectTrialStarts"] = StartOfInterval(doc["CorrectTrials"])