# Faire une opération mathématique sur une “variable de scène”

**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:** [Mars 7, 2022, 8: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:** 69

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Mai 4, 2023, 8:52 UTC](https://community.gladysassistant.com/t/faire-une-operation-mathematique-sur-une-variable-de-scene/7030/69 "2023-05-04T08:52:11Z")

</div>

@bertrandda Je ne sais pas si tu avais vu mes feedbacks ? 🙂

> <https://github.com/GladysAssistant/Gladys/pull/1742#pullrequestreview-1405208871>
>
> \### 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)

---

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