Here is an example of a selection formula: It was created by Ray Ozzie during the early development of Lotus Notes.
It was originally a Functional programming language with unique text list-handling features inspired by Ray Ozzie's prior use of Icon and Lisp.
The Formula language engine was rewritten by Damien Katz for Notes and Domino 6.
[1] New features were added to the language, such as looping and dynamic execution, and performance was improved.
It is possible to combine them with @Functions, for example by making execution of an @command conditional on a field value.