# Variable set on: why?

**URL:** https://community.thunkable.com/t/variable-set-on-why/2706749
**Category:** Questions about Thunkable X
**Created:** [November 17, 2023, 11:18am UTC](https://community.thunkable.com/t/variable-set-on-why/2706749 "2023-11-17T11:18:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rusticone](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rusticone/32/163435_2.png) [@rusticone](https://community.thunkable.com/u/rusticone)
#### Post date: [November 17, 2023, 11:18am UTC](https://community.thunkable.com/t/variable-set-on-why/2706749/1 "2023-11-17T11:18:52Z")

</div>

Please does anybody explain me why the variable “varRecordXOK” (“this variable” in the picture here) is \*ON even if the loop indicated by the arrow is not satisfied? Grazie

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/8/a84a539543296b77b7d973fe6f91261794513148.jpeg)

---

<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: [November 17, 2023, 3:14pm UTC](https://community.thunkable.com/t/variable-set-on-why/2706749/2 "2023-11-17T15:14:02Z")

</div>

If that variable is getting set to true then the if condition **is** satisfied (true). So your question should really be “why is var CercaNome not null?”

To answer that, we’d have to see your project or screenshots showing how that variable is initialized and where you set its value after that.

---

<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: [February 15, 2024, 3:14pm UTC](https://community.thunkable.com/t/variable-set-on-why/2706749/3 "2024-02-15T15:14:23Z")

</div>

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