“Function” is a logic block for unconditional calculations with user variables. Unlike “Rule”, calculations in a “Function” block are always executed, without checking any conditions. In the builder interface, the block is marked with a green vertical line on the left.
The “Function” block is available only if the project has at least one user variable.
The block consists of one or more expressions. Each expression contains three fields:

A “Function” block in the logic settings
Calculations can be run not only unconditionally but also conditionally — via the “Function” action inside a “Rule” block. The mechanics are identical to the “Function” block, but the operations run only when the “Rule”'s conditions are true. See more in the article about the “Rule” block.
The context menu (gear icon) provides:
To delete an individual expression, click the first dropdown in its row and select Delete expression at the very bottom.
You create a quiz with score counting. The variable score has an initial value of 0. After each question, a “Function” block adds points to the score variable for correct answers. On the final page, the value {score} is displayed to the respondent as the total result.