# Checking if string value is an integer

**URL:** <https://forum.kirupa.com/t/checking-if-string-value-is-an-integer/294790>\
**Category:** flash\
**Created:** [August 19, 2009, 11:38pm UTC](https://forum.kirupa.com/t/checking-if-string-value-is-an-integer/294790 "2009-08-19T23:38:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anakadote](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/anakadote/32/2119_2.png) [@anakadote](https://forum.kirupa.com/u/anakadote)\
**Post date:** [August 19, 2009, 11:38pm UTC](https://forum.kirupa.com/t/checking-if-string-value-is-an-integer/294790/1 "2009-08-19T23:38:29Z")

</div>

Is there a way to check if a string value loaded from a php script is actually a number?

```auto
//Doesn't work even when the value of evt.data is an integer, because AS thinks it's a string:
...
var returnValue:* = evt.data;
if(returnValue is int)
trace('true');
else
trace('false');

```
