Expressions – Multichannel Systems NeuroExplorer User Manual

Page 138

Advertising
background image


The operation is specified in the top left corner of the dialog. When you select an operation, an
operation description is shown in the central panel of the dialog. When you press Run the Operation
button, the specified operation is performed and a script line is added to the 'Operations Performed'
window at the bottom of the dialog. You can save the list of operations in a NexScript file if you press
the "Save.." button.



See Also

Properties of Variables and Adding Data to Variables


See Also

Document Variables and Adding New Variables


See Also

Operations on Document Variables

5.3. Expressions


Standard algebraic expressions are supported:

xmean = (xmax - xmin)/2.


Addition operation can also be applied to the strings:

name = "DSP" + "01"


Logical expressions may be used in if and while statements:

x = 2

if x >= 2

Trace("x is greater or equal to 2")

End

if x > 2

Trace("x > 2")

End

if x <= 2

Trace("x <= 2")

end

if x == 2

Trace("x equals 2")

end

if x <> 1

Trace("x is not equal to 1")

end


Logical expressions may be combined using logical AND (&) or logical OR (|) operators:

if (x >= 2) & (y <4)

Trace("x <=2 and y <4")

end

if (x >= 2) | (y <4)

Trace("x <=2 or y <4")

end

Page 136

Advertising