# A little help, scripting

**URL:** <https://forum.inductiveautomation.com/t/a-little-help-scripting/45777>\
**Category:** Ignition\
**Created:** [April 19, 2021, 8:40pm UTC](https://forum.inductiveautomation.com/t/a-little-help-scripting/45777 "2021-04-19T20:40:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [April 19, 2021, 8:40pm UTC](https://forum.inductiveautomation.com/t/a-little-help-scripting/45777/1 "2021-04-19T20:40:01Z")

</div>

false alarm

right after I posted the code, I saw the mistake was the location of the script

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [April 20, 2021, 2:51am UTC](https://forum.inductiveautomation.com/t/a-little-help-scripting/45777/3 "2021-04-20T02:51:12Z")

</div>

> I ~~don~~~~ ’ ~~~~t~~~~ know ~~the~~ etiquette ~~~~.~~  
> ~~It~~~~ is ~~~~okay~~ I ~~ask~~~~ for ~~~~help~~~~ for ~~~~things~~~~ like ~~~~this~~~~?~~

Perfectly fine to ask things like that, but what you shouldn't do though is replace your original post with something saying you fixed it, now with no context... Also, a more descriptive title would be better for people to be able to search for if they have similar issues. The forum is about building a support knowledgebase, even for seemingly "stupid questions" or dumb mistakes, as these may help someone else whose brain has retired for the day 🙃

Also, I think you're missing a `.value` at the end of these lines:

```auto
system.tag.readBlocking(["[.]countStops"])[0]

```

`readBlocking` returns an array of QualifiedValue objects which have the properties `value`, `quality`, and `timestamp`.  
If you want to compare its value, then you need to use:

```auto
system.tag.readBlocking(["[.]countStops"])[0].value

```

---

<div class="post-metadata">

**Author:** ![zacharyw.larson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zacharyw.larson/32/23749_2.png) [@zacharyw.larson](https://forum.inductiveautomation.com/u/zacharyw.larson)\
**Post date:** [April 20, 2021, 1:03pm UTC](https://forum.inductiveautomation.com/t/a-little-help-scripting/45777/4 "2021-04-20T13:03:18Z")

</div>

thanks
