# Perspective session I want to animate a pump from Props \>state\>running, stop etc

**URL:** <https://forum.inductiveautomation.com/t/perspective-session-i-want-to-animate-a-pump-from-props-state-running-stop-etc/76496>\
**Category:** Ignition\
**Tags:** ignition81, vision, perspective\
**Created:** [July 17, 2023, 11:34pm UTC](https://forum.inductiveautomation.com/t/perspective-session-i-want-to-animate-a-pump-from-props-state-running-stop-etc/76496 "2023-07-17T23:34:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vilo](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vilo](https://forum.inductiveautomation.com/u/vilo)\
**Post date:** [July 17, 2023, 11:34pm UTC](https://forum.inductiveautomation.com/t/perspective-session-i-want-to-animate-a-pump-from-props-state-running-stop-etc/76496/1 "2023-07-17T23:34:49Z")

</div>

Hi,

I'm struggling to animate a pump in Perspective environment, via Props \> state \>running, stop, etc.., while I can do that in Vision, I cannot do it in Perspective, I'm using few Boolean values from Plc to show the pump is running, stopping, fault, etc.

please can anyone help, I just recently started using Ignition.

Thanks to all!

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 18, 2023, 6:16am UTC](https://forum.inductiveautomation.com/t/perspective-session-i-want-to-animate-a-pump-from-props-state-running-stop-etc/76496/2 "2023-07-18T06:16:16Z")

</div>

You need to create a binding on the pump's `props.state` property. There's a dropdown there that shows you the valid options are _default, running, stopped, faulted_.

You could use an expression binding to combine the boolean flags using **binEnc** :  
[https://docs.inductiveautomation.com/display/DOC80/binEnc](https://docs.inductiveautomation.com/display/DOC80/binEnc)

and then use **case** to return one of the options above.

[https://docs.inductiveautomation.com/display/DOC80/case](https://docs.inductiveautomation.com/display/DOC80/case)

---

<div class="post-metadata">

**Author:** ![vilo](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vilo](https://forum.inductiveautomation.com/u/vilo)\
**Post date:** [July 18, 2023, 10:12am UTC](https://forum.inductiveautomation.com/t/perspective-session-i-want-to-animate-a-pump-from-props-state-running-stop-etc/76496/4 "2023-07-18T10:12:42Z")

</div>

thanks for you help,

it's working as intended using the **case**...thank you!
