# Making a imported variable ( from php ) into a number

**URL:** <https://forum.kirupa.com/t/making-a-imported-variable-from-php-into-a-number/69246>\
**Category:** Uncategorized\
**Created:** [November 2, 2004, 7:29pm UTC](https://forum.kirupa.com/t/making-a-imported-variable-from-php-into-a-number/69246 "2004-11-02T19:29:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VoS](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@VoS](https://forum.kirupa.com/u/VoS)\
**Post date:** [November 2, 2004, 7:29pm UTC](https://forum.kirupa.com/t/making-a-imported-variable-from-php-into-a-number/69246/1 "2004-11-02T19:29:35Z")

</div>

hey 😉

Quick question…  
im importing a few variables with this

```auto

 myVars = new LoadVars();
        myVars.load("getinfo.php?user1="+userN+"&pass45="+passN+"&random="+refresh1,"0");
        myVars.onLoad = function() {
        _root.cash=myVars.balance;
....

```

thats all working good …  
but now how do i make a variable say…  
\_root.cash  
into a a number which can be used in equations or used for logical compariosons such as \< \> ==  
thank you
