# Mathematische Operation mit einer „Szene-Variablen“ durchführen

**URL:** <https://community.gladysassistant.com/t/faire-une-operation-mathematique-sur-une-variable-de-scene/7030>\
**Category:** Demandes livrées\
**Tags:** feature-core, scene, scene-action\
**Created:** [7. März 2022 um 20:44 UTC](https://community.gladysassistant.com/t/faire-une-operation-mathematique-sur-une-variable-de-scene/7030 "2022-03-07T20:44:49Z")\
**Posts on this page:** 1\
**Showing post:** 66

<div class="post-metadata">

**Author:** ![bertrandda](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/bertrandda/32/5929_2.png) [@bertrandda](https://community.gladysassistant.com/u/bertrandda)\
**Post date:** [19. April 2023 um 20:17 UTC](https://community.gladysassistant.com/t/faire-une-operation-mathematique-sur-une-variable-de-scene/7030/66 "2023-04-19T20:17:37Z")

</div>

Die PR ist da

> <https://github.com/GladysAssistant/Gladys/pull/1742>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to \[the community\](https://community.gladysassistant.com/) for testing before merging.
> \- \[\] If you are adding a new features/services which needs explanation, did you modify the user documentation? See \[the GitHub repo\](https://github.com/GladysAssistant/v4-website) and the \[website\](https://gladysassistant.com).
> 
> NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
> 
> \### Description of change
> 
> Please provide a description of the change here. It's always best with screenshots, so don't hesitate to add some!
> 
> I added calculation in scene conditions and control device box
> Use string evaluation allow also to use device value in calculation and control device
> 
> !\[image\](https://user-images.githubusercontent.com/18148265/232593703-1a4ee942-d495-42dd-8efa-33e873a7c374.png)

Der Code ermöglicht die Verwendung von Variablen und Berechnungen in Szenen auf Ebene der Blöcke „Nur fortsetzen, wenn“ und „Gerät steuern“ (siehe Screenshots etwas weiter oben)

Wenn ihr testen wollt, ist ein Image hier verfügbar `bertrandda/gladys:scene-var-eval`

---

_[View the full topic](https://community.gladysassistant.com/t/faire-une-operation-mathematique-sur-une-variable-de-scene/7030)._
