# Value remains 1 and I can't understand why

**URL:** <https://community.thunkable.com/t/value-remains-1-and-i-cant-understand-why/1843340>\
**Category:** Questions about Thunkable X\
**Created:** [April 22, 2022, 10:45am UTC](https://community.thunkable.com/t/value-remains-1-and-i-cant-understand-why/1843340 "2022-04-22T10:45:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anastasiamunteanu048](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@anastasiamunteanu048](https://community.thunkable.com/u/anastasiamunteanu048)\
**Post date:** [April 22, 2022, 10:45am UTC](https://community.thunkable.com/t/value-remains-1-and-i-cant-understand-why/1843340/1 "2022-04-22T10:45:47Z")

</div>

Hello! I came back with yet another question 🙂 I’ve been working on an app that, once someone clicks a button titled ‘add spot’, it would retrieve the user’s current latitude and longitude using the location sensor and then would compare the value with its first 3 decimals with the latitude/longitude from airtable. The ‘alert’ value is supposed to change from 1, to 0 if your current latitude=latitude value from airtable, and, respectively, to -1 if current longitude=longitude value from airtable. If the condition (‘alert’=-1) is fulfilled, then it’s supposed to show an alert, and if it’s not, then a marker should be created and shown on the map.  
After testing it, I noticed (using a label) that the 'alert’s value remains 1, the user’s coordinates are added to the airtable, yet no marker is added on the map. What’s the issue and how can I fix this?? Thank you so much!

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/1/4180d1342cf6ab240fea447029f1c436865b1419.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/8/089eee428af02c9af67f9452072c4dea1e533be9.png)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 22, 2022, 11:00am UTC](https://community.thunkable.com/t/value-remains-1-and-i-cant-understand-why/1843340/2 "2022-04-22T11:00:51Z")

</div>

Can you explain why are you using `get property ..... j` in your `for each` loops?

---

<div class="post-metadata">

**Author:** ![anastasiamunteanu048](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@anastasiamunteanu048](https://community.thunkable.com/u/anastasiamunteanu048)\
**Post date:** [April 22, 2022, 11:04am UTC](https://community.thunkable.com/t/value-remains-1-and-i-cant-understand-why/1843340/3 "2022-04-22T11:04:13Z")

</div>

Well, I thought this could be a way to get the value of the latitude/longitude in each ‘Latitude’/‘Longitude’ row, by going through each row with ‘j’ and getting the value each time, but I may be wrong!

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 22, 2022, 11:09am UTC](https://community.thunkable.com/t/value-remains-1-and-i-cant-understand-why/1843340/4 "2022-04-22T11:09:22Z")

</div>

In your blocks, you are using `list of values` which will read the column and provide a list of all row contents for that specific column. So just use the **j** separately without the need of the `get property`.

---

<div class="post-metadata">

**Author:** ![anastasiamunteanu048](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@anastasiamunteanu048](https://community.thunkable.com/u/anastasiamunteanu048)\
**Post date:** [April 22, 2022, 11:14am UTC](https://community.thunkable.com/t/value-remains-1-and-i-cant-understand-why/1843340/5 "2022-04-22T11:14:10Z")

</div>

It works!! Thank you so much! However, there’s still no marker added on the map… 😢

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 22, 2022, 11:23am UTC](https://community.thunkable.com/t/value-remains-1-and-i-cant-understand-why/1843340/6 "2022-04-22T11:23:30Z")

</div>

> [@anastasiamunteanu048](#):
>
> there’s still no marker added on the map

The `Add Marker` block expects numbers but the `Get Current Location` block provides and Lat/Lon as text. You need to convert them to numbers by adding 0 to them so that they are accepted by the `Add Marker` block.

---

<div class="post-metadata">

**Author:** ![anastasiamunteanu048](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@anastasiamunteanu048](https://community.thunkable.com/u/anastasiamunteanu048)\
**Post date:** [April 22, 2022, 11:25am UTC](https://community.thunkable.com/t/value-remains-1-and-i-cant-understand-why/1843340/7 "2022-04-22T11:25:24Z")

</div>

Thank you very much for the help!! 😊

---

<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:** [July 21, 2022, 11:26am UTC](https://community.thunkable.com/t/value-remains-1-and-i-cant-understand-why/1843340/8 "2022-07-21T11:26:01Z")

</div>

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