# Issue with Export to HTML using variable-defined condition file in loop: NameError, UnboundLocalError

**URL:** <https://discourse.psychopy.org/t/issue-with-export-to-html-using-variable-defined-condition-file-in-loop-nameerror-unboundlocalerror/24180>\
**Category:** Online experiments\
**Tags:** pavlovia\
**Created:** [July 22, 2021, 6:20pm UTC](https://discourse.psychopy.org/t/issue-with-export-to-html-using-variable-defined-condition-file-in-loop-nameerror-unboundlocalerror/24180 "2021-07-22T18:20:02Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![JensBoelte](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jensboelte/32/9060_2.png) [@JensBoelte](https://discourse.psychopy.org/u/JensBoelte)\
**Post date:** [July 28, 2021, 5:38am UTC](https://discourse.psychopy.org/t/issue-with-export-to-html-using-variable-defined-condition-file-in-loop-nameerror-unboundlocalerror/24180/6 "2021-07-28T05:38:59Z")

</div>

Hello,

I remember a commentary that underscores can create problems

> [@Pavlovia error: 'Maximum call stack size exceeded'](https://discourse.psychopy.org/t/pavlovia-error-maximum-call-stack-size-exceeded/20746):
>
> Description of the problem: Error half way through experiment before text-based trials. Hello! When piloting my experiment on Pavlovia it returns the error message: RangeError: Maximum call stack size exceeded The first part of the experiment is a series of images which runs fine, however the error occurs once it reaches a point where a series of words are supposed to be presented. The experiment works with no issues on psychopy. This is the first experiment I’ve programmed and very new to t…

although with a different error message.

Best wishes Jens

---

_[View the full topic](https://discourse.psychopy.org/t/issue-with-export-to-html-using-variable-defined-condition-file-in-loop-nameerror-unboundlocalerror/24180)._
