Working with functions

The Impact Policy Language (IPL) and JavaScript support built-in functions and user-defined functions.

Unless stated otherwise the same functions can be used for IPL and JavaScript languages. There are differences in the syntax that is used in IPL and JavaScript.
Note: When you enter values in the function builder GUI for the parameters to a function and if the value is a string literal, you must add quotation marks around the value you enter in the function builder. If the value of the parameter refers to a variable defined earlier in the policy, then do not place quotation marks around it.

You use variables to pass values to functions. The variable is updated after the function is complete. As a result, you can use only variables to pass values to functions.

Note: The examples that appear in the following topics cannot be copied and pasted directly into the Impact Policy UI (because so doing may introduce hidden characters into the UI). First you must copy the example and paste it into a text editor (for example Notepad) and then copy it from the text editor and paste it into the Impact Policy UI.