Skip to content

Quiz: Functions

2 min read

1. How are function parameters passed in Sanny Builder?

Show hint

Think about what happens to a variable in the caller when the function modifies its parameter.

2. What is the difference between a logical function and one that returns optional?

Show hint

One is used in if conditions, the other is used when a result might not exist.

3. Where should function definitions be placed in a CLEO script?

Show hint

If the game's execution flow can reach a function definition without calling it, things won't work correctly.