Read this https://community.openhab.org/t/reusable-functions-a-simple-lambda-example-with-copious-notes/15888
- you have to define the types of input arguments
- there must be a return argument
Read this https://community.openhab.org/t/reusable-functions-a-simple-lambda-example-with-copious-notes/15888