IntSize

Creates a new Interval Variable that contains the intervals with the specified length range.

Syntax

IntSize(intervalVar, minInt, maxInt)

Parameters

Parameter

Type

Description

intervalVar

variableReference

Reference to the interval variable.

minInt

number

Minimum interval length (in seconds)

maxInt

number

Maximum interval length (in seconds)

Return

Reference to the new interval variable.

Note

Creates a new Interval Variable that contains all of the intervals of intervalVar that have the length which is more or equal to minInt and less than or equal to maxInt.

Examples

Python

import nex
doc = nex.GetActiveDocument()
doc["TrialsLessThan10secDuration"] = nex.IntSize(doc["Trials1"], 0, 10)

NexScript

doc = GetActiveDocument()
doc["TrialsLessThan10secDuration"] = IntSize(doc["Trials1"], 0, 10)