NthAfter

Creates the new variable with the N-th timestamp in var1 after each timestamp in var2.

Syntax

NthAfter(var1, var2, N)

Parameters

Parameter

Type

Description

var1

variableReference

Reference to the variable

var2

variableReference

Reference to the variable

N

number

Spike number.

Return

Reference to the new variable.

Note

Creates the new variable with the N-th timestamp in var1 after each timestamp in var2.

Examples

Python

import nex
doc = nex.GetActiveDocument()
doc["SecondSpike"] = nex.NthAfter(doc["Neuron05c"], doc["Neuron06d"], 2)

NexScript

doc = GetActiveDocument()
doc["SecondSpike"] = NthAfter(doc["Neuron05c"], doc["Neuron06d"], 2)