IVM PLUGIN: GENFUNC.EXE

-----

This is a plugin for the IVM Telephone Voice Attendant which can be downloaded at www.nch.com.au/ivm.

Use genfunc.exe to perform one of a list of basic functions to data obtained by IVM or entered by the caller. It is run as a plugin. Usually some of the parameters will be variables entered by the caller or returned by other plugins during the course of the call.

Boolean Functions usage:
   genfunc.exe OpCode ValA ValB [ResultVariableName=result] [ReturnValueTrue=true] [ReturnValueFalse=false]

where OpCode can be one of the following:
	= 				case insensitive alphanumeric test that ValA is equal to ValB.
	==				case insensitive alphanumeric test that ValA is equal to ValB.
	equals		case insensitive alphanumeric test that ValA is equal to ValB.
	is				case insensitive alphanumeric test that ValA is equal to ValB.
	contains		alphanumeric test that ValA contains ValB.
	startswith	alphanumeric test that ValA begins with ValB.
	gt				numeric test that ValA is greater than ValB.
	ge				numeric test that ValA is greater than or equal to ValB.
	lt				numeric test that ValA is less than ValB.
	le				numeric test that ValA is less than or equal to ValB.

Binary Functions usage:
	genfunc.exe OpCode ValA ValB [ResultVariableName=result]

where OpCode can be one of the following:
	+		ValA is added to ValB and the result is returned in ResultVariableName
	-		ValB is subtracted from ValA and the result is returned.
	/		if ValB is not 0, then ValA is divided by ValB and the result is returned.
	*		ValA is multiplied by ValB and the result is returned.
	%		if ValB is not 0, then ValA is divided by ValB and the remainder is returned.

Uniary Functions usage:
	genfunc.exe OpCode ValA [ResultVariableName=result]

OpCode:
	assign		ResultVariableName (default result) is assigned to ValA.
	roundup		ValA is rounded up and returned in ResultVariableName.
	rounddown	ValA is rounded down and returned in ResultVariableName.
	round			ValA is rounded to the nearest integer and returned.
	++				ValA is incremented by 1 and the result returned.
	--				ValA is decremented by 1 and the result returned.

In all of the above functions, the result is returned in the variable name specified by ResultVariableName. If this is omitted, the result is returned in variable result (ie. use %result% to access it).

For boolean functions (see above) you can also specify the true and false values. Often these can be used as the name of the next OGM to redirect calls later.

For more information about using plugins, please see the IVM Help Pages.


-----

Licence: This plugin may be distributed freely so long as it is distributed for use only with IVM. NCH Swift Sound may revoke this licence at any time with notice.

(c) 2002 NCH Swift Sound
http://www.nch.com.au