Functions

The data in a document can be altered with the use of built in functions. They can convert types of data to other types, calculate the sine or cosine of numbers, change the layout/format of numbers so you can use them as area's, amounts or dates. The ITP language has a lot of built-in functions to support this. These functions are grouped in several categories.

In the category Text there are some functions that make it able to rewrite the text in another format or datatype. For example, the function text_to_number converts a text to a number.

It is also possible to do this the other way around; in the category Numbers there are functions like uppercase_roman_number and number_in_words that convert numbers to text-format.

The category Numbers also has three subcategories:

It's also possible to work with Arrays. A function like length_bool_array allows you to calculate the length of an array of type BOOL. It is also available for the types number and text.

There are also some functions for Maps, Text Blocks and Field Sets. Like get keys from a bool map, insert a text block and clear fieldset.