# Expression script transform on value 12.3 returns set(\[12.3\])!

**URL:** <https://forum.inductiveautomation.com/t/expression-script-transform-on-value-12-3-returns-set-12-3/102798>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [February 24, 2025, 4:38pm UTC](https://forum.inductiveautomation.com/t/expression-script-transform-on-value-12-3-returns-set-12-3/102798 "2025-02-24T16:38:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 24, 2025, 4:38pm UTC](https://forum.inductiveautomation.com/t/expression-script-transform-on-value-12-3-returns-set-12-3/102798/1 "2025-02-24T16:38:43Z")

</div>

![Script transform SET](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/8/983692cefcaf5797fbe3bd83794e8d1af9f41154.png)

I just stumbled across this. Why does it return a `set([...])` rather than just a value?

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [February 24, 2025, 4:43pm UTC](https://forum.inductiveautomation.com/t/expression-script-transform-on-value-12-3-returns-set-12-3/102798/2 "2025-02-24T16:43:40Z")

</div>

Comma separated values enclosed with `{}` is set notation for python. It probably didn't see a `key:value` pair and fell back to making it a set.

Were you trying to make a dictionary with a key that had an empty value?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 24, 2025, 4:55pm UTC](https://forum.inductiveautomation.com/t/expression-script-transform-on-value-12-3-returns-set-12-3/102798/3 "2025-02-24T16:55:23Z")

</div>

> [@ryan.white](#):
>
> Were you trying to make a dictionary ...

No, I was being stupid, adding `{ }` in the script as I would have in an expression!

Thanks.
