# \#method

**URL:** https://community.openhab.org/tag/method/4051.md

[Latest](https://community.openhab.org/latest.md) · [Categories](https://community.openhab.org/categories.md) · [Tags](https://community.openhab.org/tags.md)

---

## [Method call without imput parameters in Rule](https://community.openhab.org/t/method-call-without-imput-parameters-in-rule/103672)

<div class="topic-metadata">

**Author:** [@Candy6132](https://community.openhab.org/u/Candy6132)\
**Replies:** 2\
**Last updated:** [August 16, 2020, 6:20pm UTC](https://community.openhab.org/t/method-call-without-imput-parameters-in-rule/103672 "2020-08-16T18:20:12Z")

</div>

Hi, Since the below block of code is kind of a method, which we can call in multiple places within the rule, what would be the syntax for a method without imput parameters? var doTheMath = \[ Integer i | var integer = …
