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 Use the Element Function

Published October 02, 2006

Syntax for Element is: "Variable = element(Search_Value,Search_Array,Return_Array)".
The "Element" function is similar to a "Lookup" function in Microsoft Excel. It will find the appropriate row in a Search_Array, and return the corresponding value in Return_Array.

As an example, enter the rules "Car Model = {Mercedes, Porsche, Honda}" and "Car Price = {70000,90000,30000}". Finding the price of the Porsche could be "Result = element(Porsche,Car Model,Car Price)".

In this example, the Element function will look for "Porsche" in Car Model and find it in the second item. The function will then return the second item from Car Price.

Return to Knowledge Base