1lytics

Manipulating with function values

  • gkGetFunctionValue - returns specified output (function) value for the spicefied input vector
  • gkSetFunctionValue - sets specified output (function) value for the spicefied input vector
  • gkSetOutput - sets value for all outputs (functions) at one time for the spicefied input vector
  • gkSetOutputUndefined - sets all outputs (functions) to 'Undefined' state at one time for the spicefied input vector
  • gkSetFunctionListValue - assigns the same value to all output functions taken as list of names or indexes

gkGetFunctionValue

The gkGetFunctionValue function returns specified output (function) value for the spicefied input vector. Returned value can be 0, 1 or -1 for undefined output.

gkGetFunctionValue( InputVector, 'FnNameOrIndex')

Parameters

  • InputVector - input values vector;
  • FnNameOrIndex - function name or index (from left to right) of output function.

gkSetFunctionValue

The gkSetFunctionValue function sets specified output (function) value for the spicefied input vector.

gkSetFunctionValue( InputVector, 'FnNameOrIndex', Value)

Parameters

  • InputVector - input values vector;
  • FnNameOrIndex - function name or index (from left to right) of output function;
  • Value - can be 0, 1 or -1 for undefined output.

See Also

gkSetOutput

The gkSetOutput function sets value for all outputs (functions) at one time for the spicefied input vector.

gkSetOutput(InputVector, OutputVector)

Parameters

  • InputVector - input values vector;
  • OutputVector - output values vector to be set.

See Also

gkSetOutputUndefined

The gkSetOutputUndefined function sets all outputs (functions) to 'Undefined' state at one time for the spicefied input vector.

gkSetOutputUndefined(InputVector)

Parameters

  • InputVector - input values vector;

See Also

gkSetFunctionListValue

The gkSetFunctionListValue function assigns the same value to all output functions taken as list of names or indexes.

gkSetFunctionListValue(InputVector, value, NameOrIdx1[, NameOrIdx2 ...])

Parameters

  • InputVector - input values vector;
  • value - value to assign for all listed functions, can be 0, 1 or -1 for undefined output;
  • NameOrIdx1, NameOrIdx2 ... - output function names or indexes (from left to right). Note: invalid names or non-existent indexed currently are simple ignored (and not produces an error), but this behavior can be changed. Function names such '-', '--', '---' as well as names with spaces only and so on will always be ignored silent for better script code formatting (see reference below for sample).

See Also