# Scripts Folder?

**URL:** <https://community.openhab.org/t/scripts-folder/37014>\
**Category:** Scripts & Rules\
**Created:** [December 6, 2017, 2:31am UTC](https://community.openhab.org/t/scripts-folder/37014 "2017-12-06T02:31:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [December 6, 2017, 2:05pm UTC](https://community.openhab.org/t/scripts-folder/37014/3 "2017-12-06T14:05:00Z")

</div>

> [@Steve40](#):
>
> Does it still work the same as in 1.x, or can you pass variables to the scripts now?

It still works the same.

> [@Steve40](#):
>
> Looking further with a few different keywords, it sounds like lambda expressions might be what I need, correct?

Depends on what you are trying to accomplish.

> [@Reusable Functions: A simple lambda example with copious notes](https://community.openhab.org/t/reusable-functions-a-simple-lambda-example-with-copious-notes/15888):
>
> Major Edit: Rewrote with the cleaner OH 2.3 syntax. The example lambda on the OH 1 wiki is overly complex and as written will not work in OH 2. This quick example will show a super simple lambda example with copious notes. Here is the code without comments. It takes in an Item, logs it’s state and returns a slightly modified version of the String logged. val log= [GenericItem s | logInfo("lambda", s.state.toString) s.state.toString + " logged"] rule "Call Lambda" when // some t…

---

_[View the full topic](https://community.openhab.org/t/scripts-folder/37014)._
