Skip to main content



User-Defined Function Samples

InRule includes a selection of sample User Defined Functions, grouped in four categories.

Before you start

User-Defined Functions Tutorial
For an introduction to what UDFs are, when to use them, and how they fit into a rule application, start with the overview article: User-Defined Functions.

irScript Language Reference
UDFs are written in irScript, the expression language used throughout InRule. If you are creating or editing a UDF, the irScript Language Reference provides the syntax, operators, and built-in functions you will rely on. Reviewing it helps ensure your UDF logic is clear, consistent, and correct. See the section here, irScript Language Reference and User Guide.

Samples

String Functions

Rule Functions

Schema Functions

External Library Functions

note

These and additional samples are located in the InRule samples repository on GitHub. See Online Resources for more information. Some of the sample functions will require the assembly InvoiceObjects.dll, which is located in the Developer Samples\\CommonBin direcory at that location.