# Line Rotation

**URL:** <https://forum.inductiveautomation.com/t/line-rotation/10783>\
**Category:** Ignition\
**Created:** [November 13, 2015, 9:41am UTC](https://forum.inductiveautomation.com/t/line-rotation/10783 "2015-11-13T09:41:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamesUalto](https://avatars.discourse-cdn.com/v4/letter/j/54ee81/32.png) [@JamesUalto](https://forum.inductiveautomation.com/u/JamesUalto)\
**Post date:** [November 13, 2015, 9:41am UTC](https://forum.inductiveautomation.com/t/line-rotation/10783/1 "2015-11-13T09:41:40Z")

</div>

Hi all,

I need to bind a tag to a horizontal line so it will rotate from -0.0 Deg to -90.0 Deg. I am trying to use an expression but I can’t get it to work.  
My attempt is as follows:

[color=#0000FF]if[/color] ([color=#BF00FF]{Damper.damper::FieldFB}[/color]\<=10, [color=#BF00FF]{angleDegrees}[/color]= 9.0,  
[color=#0000FF]if[/color] ([color=#BF00FF]{Damper.damper::FieldFB}[/color]\<=20, [color=#BF00FF]{angleDegrees}[/color]= 18.0,  
)  
)

‘Damper.damper::FieldFB’ is a UDT property which ranges from 0-100. ‘angleDegrees’ is the property script name for the line.  
I would then continue this changing the values as often as I need to, to make the line rotate at regular intervals.  
BUT IT WONT WORK ![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:")

Any feedback is greatly appreciated.  
Thank you.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [November 13, 2015, 11:36am UTC](https://forum.inductiveautomation.com/t/line-rotation/10783/2 "2015-11-13T11:36:14Z")

</div>

Binding to the Angle property of the line:

`if ({Damper.damper::FieldFB}<=10, 9.0,
if ({Damper.damper::FieldFB}<=20, 18.0,
etc.)
)`will get what you want… with a lot of typing.

However, it looks like {Damper.damper::FieldFB} is a percentage. If you divide that by 100, you can easily scale the amount of rotation:

```auto
90*{Damper.damper::FieldFB}/100
```
