# Set Variable - What conditions make it to separate out and why does it not work?

**URL:** <https://community.thunkable.com/t/set-variable-what-conditions-make-it-to-separate-out-and-why-does-it-not-work/2512285>\
**Category:** Questions about Thunkable X\
**Created:** [July 19, 2023, 5:11pm UTC](https://community.thunkable.com/t/set-variable-what-conditions-make-it-to-separate-out-and-why-does-it-not-work/2512285 "2023-07-19T17:11:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)\
**Post date:** [July 19, 2023, 5:11pm UTC](https://community.thunkable.com/t/set-variable-what-conditions-make-it-to-separate-out-and-why-does-it-not-work/2512285/1 "2023-07-19T17:11:45Z")

</div>

Hi,

This is bit of strange question please pardon me.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/4/544ea5c366ca2d5947e101079bce3d6516b31530.png)  
Documentation recommends that if you do, “set app variable jsonobj” then if you want to use you should call it as a plugin “app variable jsonobj”. Yes this works. I was doing something (I forgot what I did) and suddenly I had this “jsonobj” as a plugin by itself as you can see. I tried using it instead of “app variable jsonobj” that did not work. I clicked it, it allowed me to change its name. My question how did I mange to get jsonobj as a standalone plugin (It is as though I did a initialize app variable) and how come I cant use it? If this is Thunkable bug then I will refile it. Documentation does not talk about Renaming variables. Please clarify

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [July 19, 2023, 6:44pm UTC](https://community.thunkable.com/t/set-variable-what-conditions-make-it-to-separate-out-and-why-does-it-not-work/2512285/2 "2023-07-19T18:44:05Z")

</div>

It’s not a bug. And it’s a little hard to explain since I’m on my phone but it sounds like you created a loop variable and also created an app variable with the same name, which is confusing.

That drop-down menu shows the loop variables only.

---

<div class="post-metadata">

**Author:** ![anandavardhana57zwwl](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anandavardhana57zwwl](https://community.thunkable.com/u/anandavardhana57zwwl)\
**Post date:** [July 19, 2023, 8:25pm UTC](https://community.thunkable.com/t/set-variable-what-conditions-make-it-to-separate-out-and-why-does-it-not-work/2512285/3 "2023-07-19T20:25:58Z")

</div>

Hi Tatiang,

I think you are right. When you create a loop variable Thunkable does get bit disoriented. I have seen in the past too, it is not as rigorous as C++ in syntax error reporting. One got to be real careful. The loop variable is j the set app variable is jsonobj but Thunkable back end mixed it I guess. No problem I will be careful. Thanks a lot for the insight.

regards  
ananda

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [October 17, 2023, 8:26pm UTC](https://community.thunkable.com/t/set-variable-what-conditions-make-it-to-separate-out-and-why-does-it-not-work/2512285/4 "2023-10-17T20:26:12Z")

</div>

Closed on October 17, 2023, 8:26pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
