# If and control flow script example

**URL:** <https://forum.inductiveautomation.com/t/if-and-control-flow-script-example/10098>\
**Category:** Ignition\
**Created:** [June 7, 2015, 3:32pm UTC](https://forum.inductiveautomation.com/t/if-and-control-flow-script-example/10098 "2015-06-07T15:32:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdahigaonkar](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@sdahigaonkar](https://forum.inductiveautomation.com/u/sdahigaonkar)\
**Post date:** [June 7, 2015, 3:32pm UTC](https://forum.inductiveautomation.com/t/if-and-control-flow-script-example/10098/1 "2015-06-07T15:32:46Z")

</div>

Can somebody give me some examples of “if”, “if-else” statements  
I have read Ignition manual but could not get much examples so that I can have practice

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [June 7, 2015, 3:59pm UTC](https://forum.inductiveautomation.com/t/if-and-control-flow-script-example/10098/2 "2015-06-07T15:59:06Z")

</div>

Hi,

It is Python so you can search the web for examples: [tutorialspoint.com/python/python\_if\_else.htm](http://www.tutorialspoint.com/python/python_if_else.htm)

Best,

---

<div class="post-metadata">

**Author:** ![sdahigaonkar](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@sdahigaonkar](https://forum.inductiveautomation.com/u/sdahigaonkar)\
**Post date:** [June 7, 2015, 4:19pm UTC](https://forum.inductiveautomation.com/t/if-and-control-flow-script-example/10098/3 "2015-06-07T16:19:32Z")

</div>

Thanks,  
Is it possible you give me some exclusive example related to Ignition designer. I mean how to use in event handler, tag binding etc.  
Thanks again

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [June 7, 2015, 4:37pm UTC](https://forum.inductiveautomation.com/t/if-and-control-flow-script-example/10098/4 "2015-06-07T16:37:48Z")

</div>

Check out the scripting videos on Inductive University: [inductiveuniversity.com/course/scripting](https://inductiveuniversity.com/course/scripting)
