# Undeclared Identifier Error in Niagara Simulation Stage

**URL:** <https://forums.unrealengine.com/t/undeclared-identifier-error-in-niagara-simulation-stage/482731>\
**Category:** FX\
**Tags:** error, unreal-engine, question\
**Created:** [April 30, 2021, 11:12pm UTC](https://forums.unrealengine.com/t/undeclared-identifier-error-in-niagara-simulation-stage/482731 "2021-04-30T23:12:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bob3DGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bob3DGames](https://forums.unrealengine.com/u/Bob3DGames)\
**Post date:** [April 30, 2021, 11:12pm UTC](https://forums.unrealengine.com/t/undeclared-identifier-error-in-niagara-simulation-stage/482731/1 "2021-04-30T23:12:05Z")

</div>

Why do I get an ‘undeclared identifier’ error?

 ![337629-undeclared-identifier.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/1/d71aeabdbf830c5c9b25f5dfece7bfc8e97f1829.png)

It makes no sense. ‘InCollided’ is right there. Why does it think it’s undeclared?

I’ve tried the strange get variable, set variable, get variable thing (for which I’ve never found a proper explanation other than the somewhat cryptic and misspelt comment) it does in the PBD example in Content Examples, but that doesn’t help.

---

<div class="post-metadata">

**Author:** ![Bob3DGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Bob3DGames](https://forums.unrealengine.com/u/Bob3DGames)\
**Post date:** [May 1, 2021, 10:15am UTC](https://forums.unrealengine.com/t/undeclared-identifier-error-in-niagara-simulation-stage/482731/2 "2021-05-01T10:15:10Z")

</div>

It turns out this was just a very misleading error. Further down in the code I check this bool in an if statement and when I changed

```
!InCollided

```

to

```
InCollided == false

```

the error went away.
