# Loop sometimes works but not consistent

**URL:** <https://discourse.psychopy.org/t/loop-sometimes-works-but-not-consistent/6969>\
**Category:** Builder\
**Created:** [March 9, 2019, 9:24am UTC](https://discourse.psychopy.org/t/loop-sometimes-works-but-not-consistent/6969 "2019-03-09T09:24:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Michael](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael/32/16_2.png) [@Michael](https://discourse.psychopy.org/u/Michael)\
**Post date:** [March 13, 2019, 4:12am UTC](https://discourse.psychopy.org/t/loop-sometimes-works-but-not-consistent/6969/2 "2019-03-13T04:12:17Z")

</div>

> [@Please surround python code with backticks](https://discourse.psychopy.org/t/please-surround-python-code-with-backticks/1775):
>
> When you include python code on this forum please put triple “backticks” like this ``` on the line before and the line after your code. If you’ve done it correctly then your code will appear in a grey box with correct indentation like this (check the preview of your post on the right hand side before posting it) and other people will be better able to work out what might be right/wrong with your code. if myVal==True: break If you’ve already posted something that didn’t follow this rule th…

You can just edit your existing post as above, to make it readable. NB this isn’t just cosmetic: we need to be able to see if the indentation is correct, which is currently invisible.

---

_[View the full topic](https://discourse.psychopy.org/t/loop-sometimes-works-but-not-consistent/6969)._
