# I have no idea what's wrong. Please help! ERROR: UndefVarError: i not defined

**URL:** <https://discourse.julialang.org/t/i-have-no-idea-whats-wrong-please-help-error-undefvarerror-i-not-defined/65416>\
**Category:** General Usage\
**Tags:** while-for-scope, i-not-defined\
**Created:** [July 28, 2021, 6:48am UTC](https://discourse.julialang.org/t/i-have-no-idea-whats-wrong-please-help-error-undefvarerror-i-not-defined/65416 "2021-07-28T06:48:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [July 28, 2021, 6:54am UTC](https://discourse.julialang.org/t/i-have-no-idea-whats-wrong-please-help-error-undefvarerror-i-not-defined/65416/2 "2021-07-28T06:54:02Z")

</div>

Please see:

> [@PSA: how to quote code with backticks](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530):
>
> This is a short post on how to use backticks (` and ```) to quote code, so it is easy to read. This post can be linked to new users who are confused by this feature. Why By quoting your code, you get a monospaced font (which preserves indentation) and syntax highlighting. This makes it easier to read your code and help you. Displayed code looks like this: function displayed\_code(x::Int, y::Int) if x \< y println("x is smaller") else println("or not") end end Inline…

and

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

_[View the full topic](https://discourse.julialang.org/t/i-have-no-idea-whats-wrong-please-help-error-undefvarerror-i-not-defined/65416)._
