IsSelected

Returns 1 if the variable var is selected, 0 otherwise.

Syntax

IsSelected(var)

Parameters

Parameter

Type

Description

var

variableReference

Reference to the variable

Return

Returns 1 if the variable var is selected, 0 otherwise.

Note

Only selected variables are used in analysis.

Examples

Python

import nex
doc = nex.GetActiveDocument()
isSel = nex.IsSelected(doc["Neuron04a"])

NexScript

doc = GetActiveDocument()
isSel = IsSelected(doc["Neuron04a"])