Skip to content

Internal Scripting Examples 1

The context is:

$ROICIIndex contains index of ROI sampling point
$ROICIIndexMin = 1
$ROICIIndexMax = 7
$ROICIIndexMin <= $ROICIIndex <= $ROICIIndexMax

The following example shows how to use a local variable named "scalar" to keep a value to be used on each sampling of ROI:

Block(
  IIf($ROICIIndex == $ROICIIndex; Set("scalar"; M2!Scalar); 0);
  ScalarTimes(M2!Vector * [12.3;12;12]; $scalar)
)