# Expression tag and script modules

**URL:** <https://forum.inductiveautomation.com/t/expression-tag-and-script-modules/8632>\
**Category:** Ignition\
**Created:** [June 27, 2014, 10:53am UTC](https://forum.inductiveautomation.com/t/expression-tag-and-script-modules/8632 "2014-06-27T10:53:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![quper](https://avatars.discourse-cdn.com/v4/letter/q/aeb1de/32.png) [@quper](https://forum.inductiveautomation.com/u/quper)\
**Post date:** [June 27, 2014, 10:53am UTC](https://forum.inductiveautomation.com/t/expression-tag-and-script-modules/8632/1 "2014-06-27T10:53:55Z")

</div>

Is it possible to use script modules with expression tag?

For example I have function in script modules:  
def testScript(testString):  
return testString

If I bind expression to a text label, it is working just fine:  
runScript(“app.util.testScript(‘some string’)”)  
Label is displaying ‘some string’ text.

But if I bind it to type String Expression tag, it would give me quality ‘Evaluation Error’ and null value.

---

<div class="post-metadata">

**Author:** ![adamaustin](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adamaustin](https://forum.inductiveautomation.com/u/adamaustin)\
**Post date:** [June 27, 2014, 11:39am UTC](https://forum.inductiveautomation.com/t/expression-tag-and-script-modules/8632/2 "2014-06-27T11:39:16Z")

</div>

Check out [Nick’s response](http://inductiveautomation.com/forum/viewtopic.php?p=42347#p42347) in the forum. Maybe someone with the 7.7 beta can see if global scripts can fix this?

---

<div class="post-metadata">

**Author:** ![quper](https://avatars.discourse-cdn.com/v4/letter/q/aeb1de/32.png) [@quper](https://forum.inductiveautomation.com/u/quper)\
**Post date:** [June 27, 2014, 11:44am UTC](https://forum.inductiveautomation.com/t/expression-tag-and-script-modules/8632/3 "2014-06-27T11:44:06Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![quper](https://avatars.discourse-cdn.com/v4/letter/q/aeb1de/32.png) [@quper](https://forum.inductiveautomation.com/u/quper)\
**Post date:** [June 27, 2014, 2:01pm UTC](https://forum.inductiveautomation.com/t/expression-tag-and-script-modules/8632/4 "2014-06-27T14:01:39Z")

</div>

I need that for example to resolve such issue:

I get tag value in such format from expression tag with httpGet function:  
+.11100000E+02  
which is really float. I can display it as 11.1 for example in label with float() Python function.  
If I try to use toFloat() Expression function, it does not work.

So as I understand in version 7.7 I could call a Script Modules function in Expression Tag to convert value to float with Python functionality. Something like app.util.float(httpGet())

Or is it possible to format such value as +.11100000E+02 to float as 11.1 in Expression Tag?
