# If logic code bloc or python scrips

**URL:** <https://forum.dynamobim.com/t/if-logic-code-bloc-or-python-scrips/7122>\
**Category:** Developers\
**Created:** [October 27, 2016, 3:17pm UTC](https://forum.dynamobim.com/t/if-logic-code-bloc-or-python-scrips/7122 "2016-10-27T15:17:36Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Thomas\_Mahon](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/thomas_mahon/32/64209_2.png) [@Thomas\_Mahon](https://forum.dynamobim.com/u/Thomas_Mahon)\
**Post date:** [October 27, 2016, 8:38pm UTC](https://forum.dynamobim.com/t/if-logic-code-bloc-or-python-scrips/7122/4 "2016-10-27T20:38:50Z")

</div>

Check this posts here:

> [@Apply multi-condition of python script on each index of an input list](https://forum.dynamobim.com/t/apply-multi-condition-of-python-script-on-each-index-of-an-input-list/7124):
>
> Hi, i want the script to scan an input list of numbers (angles) than give an orientation basing on item value and specific ranges where it fits for example: if the value of item index 0 is \>=0 && a\<=22.5 : then print(‘North’) i have two problem in this script that i couldn’t solve! this actual script group the same output together instead of maintaining the output with the relevant input index . also the last script has a problem and it made the node yellow when i wrote it; for i in xrange…

That will get you started. I can give you the answer, but then you’ll learn nothing! There’s also a neat solution to your problem that doesn’t even need conditional statements…you can solve it using applied mathematics and computational thinking.

Also, the best way to get the most out of this community is to try yourself first and post when you get stuck.

---

_[View the full topic](https://forum.dynamobim.com/t/if-logic-code-bloc-or-python-scrips/7122)._
