# Need Help About Some Lines Of Code Please

**URL:** https://forum.highend3d.com/t/need-help-about-some-lines-of-code-please/2948
**Category:** Maya
**Tags:** mel
**Created:** [August 11, 2006, 8:33pm UTC](https://forum.highend3d.com/t/need-help-about-some-lines-of-code-please/2948 "2006-08-11T20:33:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![user\_deleted](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/u/35a633/32.png) [@user\_deleted](https://forum.highend3d.com/u/user_deleted)
#### Post date: [August 11, 2006, 8:33pm UTC](https://forum.highend3d.com/t/need-help-about-some-lines-of-code-please/2948/1 "2006-08-11T20:33:00Z")

</div>

I downloaded a calculator script from highend3d...

[http://www.highend3d.com/maya/downl...\_Calculator.mel](http://www.highend3d.com/maya/downl...%5C_Calculator.mel)

So guys, can someone please explain me these lines of code :

float $ris = eval ("float $dummy = " + `textField -query -text $totale`);  
textField -edit -text $ris $totale;

Thanks for your time

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [August 12, 2006, 7:06am UTC](https://forum.highend3d.com/t/need-help-about-some-lines-of-code-please/2948/2 "2006-08-12T07:06:50Z")

</div>

QUOTE(STAVREV @ 08/11/06, 11:33 PM) [snapback]244918[/snapback]  
float $ris = eval ("float $dummy = " + `textField -query -text $totale`);

this is the calculation, its the result of whatever you happen to have typed in the field (read docs about eval, its basicaly a just in time compile of the shard inside)  
QUOTE(STAVREV @ 08/11/06, 11:33 PM) [snapback]244918[/snapback]  
textField -edit -text $ris $totale;

This sets the resuult back into the gui!
