# How to check whether a identifier is defined within the current scope?

**URL:** https://discourse.julialang.org/t/how-to-check-whether-a-identifier-is-defined-within-the-current-scope/7470
**Category:** General Usage
**Created:** [December 3, 2017, 6:56am UTC](https://discourse.julialang.org/t/how-to-check-whether-a-identifier-is-defined-within-the-current-scope/7470 "2017-12-03T06:56:38Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![jlapeyre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jlapeyre/32/4514_2.png) [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)
#### Post date: [July 6, 2018, 10:26pm UTC](https://discourse.julialang.org/t/how-to-check-whether-a-identifier-is-defined-within-the-current-scope/7470/7 "2018-07-06T22:26:33Z")

</div>

In case you still need to do this in v0.6. Here is a macro that checks if a variable is defined in a local scope: [Check whether a variable is defined - #3 by mike](https://discourse.julialang.org/t/check-whether-a-variable-is-defined/1018/3)

---

_[View the full topic](https://discourse.julialang.org/t/how-to-check-whether-a-identifier-is-defined-within-the-current-scope/7470)._
