
5.5.13.21. GetFirstGT Function
GetFirstGT Function
Returns the index of the first timestamp in the specified variable that is greater than the specified
number.
Syntax
double GetFirstGT(var, number)
Parameters
Parameter Type Description
var variableReference Reference to the variable.
number double Time value in seconds.
Returns
Returns the index of the first timestamp in the specified variable that is greater than the specified
number.
Comments
None
Usage
NexScript
doc = GetActiveDocument()
neuron = GetVarByName(doc, "Neuron04a")
% get the index of the first spike after 5.7s
index = GetFirstGT(var, 5.7)
See Also
Introduction to NexScript Programming
NexScript Function Categories
Page 299
Comentários a estes Manuais