Scripts Folder?

Evening, all!

In openHab 1.x there was a scripts folder where you could place bits of code for reuse, kinda like a function/subroutine, except (if I recall correctly) it was relatively useless since you couldn’t pass variables to the scripts. I see that the scripts folder is still there in openHab 2.x. Does it still work the same as in 1.x, or can you pass variables to the scripts now?

Thanks!

Hmmm… Looking further with a few different keywords, it sounds like lambda expressions might be what I need, correct? I’ll dig into this further…

It still works the same.

Depends on what you are trying to accomplish.

That’s exactly the info that I needed! Thanks!