# Conditional Statement

**URL:** <https://forum.kirupa.com/t/conditional-statement/239000>\
**Category:** Uncategorized\
**Created:** [September 17, 2007, 9:08pm UTC](https://forum.kirupa.com/t/conditional-statement/239000 "2007-09-17T21:08:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilProphet](https://avatars.discourse-cdn.com/v4/letter/i/258eb7/32.png) [@ilProphet](https://forum.kirupa.com/u/ilProphet)\
**Post date:** [September 17, 2007, 9:08pm UTC](https://forum.kirupa.com/t/conditional-statement/239000/1 "2007-09-17T21:08:20Z")

</div>

I was wondering what the rules are for declaring variables which you would increment say in an for loop. I tried to declare a variable outside the for loop, and then increment it within the loop but that didn’t work. If there is a tutorial anyone knows of that would be great too.
