In need of support?

Support is provided on a first come, first served basis through email. Additional sources are:

  • Help and Tutorial: RulesBase includes an extensive help file and a Language Tutorial.
  • Support KnowledgeBase: the Gray Box Software website, located at www.grayboxsoftware.com maintains a knowledgebase of known issues.
  • Contact if you can not find an answer. We also welcome comments or suggestions at .

* - denotes required field

* Name:
* Phone:
* Email:
* Comments:
 

Knowledge Base

How To Create a User Defined Function

Published October 02, 2006

User Defined Functions are the same as any other rule, except the user defines parameters with a special notation. The system will not search for a variable beginning with "_" (underscore). Instead, the user must pass the value to use as a parameter.

Definition:
product(_x,_y) := _x * _y

The user may call product anytime the rule is available:
product(4,5) will return 20;
product(3,2) will return 6.

Return to Knowledge Base