# If else expression

**URL:** <https://forums.synfig.org/t/if-else-expression/12528>\
**Category:** Synfig general discussion\
**Created:** [September 12, 2021, 7:36am UTC](https://forums.synfig.org/t/if-else-expression/12528 "2021-09-12T07:36:17Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![woody](https://forums.synfig.org/letter_avatar_proxy/v4/letter/w/ac91a4/32.png) [@woody](https://forums.synfig.org/u/woody)\
**Post date:** [March 8, 2022, 4:10am UTC](https://forums.synfig.org/t/if-else-expression/12528/9 "2022-03-08T04:10:05Z")

</div>

What we really need us a “modulo” division conversion.

I’ve worked out a way of connecting a linear conversion, through a scale conversion, and a sin and cosine conversion, and then a vector angle conversion, which allow what I think this fellow is after, you can go round around a circle 360, 720, 1080 degrees linear, but through the conversions finally “vector angle” ( or arctan2 can also work) makes this go from 0 to 360 over and over. It’s bizarre but it functionally works like a modular division function.

So you could build one of these gadgets with a divide by 36 and it could be bribed to count from 0 to 9 over and over then you run that into the selected field of a switch function or something. I really need to find the file server so I can share files with you guys. There are a lot of really cool things you can do with conversions.

---

_[View the full topic](https://forums.synfig.org/t/if-else-expression/12528)._
