# If statement

**URL:** <https://forum.kirupa.com/t/if-statement/50822>\
**Category:** Uncategorized\
**Created:** [May 6, 2004, 7:31pm UTC](https://forum.kirupa.com/t/if-statement/50822 "2004-05-06T19:31:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tvirus](https://avatars.discourse-cdn.com/v4/letter/t/f07891/32.png) [@Tvirus](https://forum.kirupa.com/u/Tvirus)\
**Post date:** [May 6, 2004, 7:31pm UTC](https://forum.kirupa.com/t/if-statement/50822/1 "2004-05-06T19:31:02Z")

</div>

Hi,

I am not very good in flash… but I do know Javascript and PHP… Actionscript looks about the same for me.  
My problem is as following…  
I get a value from a PHP file, and get it in flash… this is my PHP text:

```php

<?PHP 
//test.php 
echo "variabele=Goedemorgen&t=1"; 
?> 

```

and this is my Flash script:

```auto

loadVariablesNum("test.php", 0);

if(t==1){
	var blaat	= "hallo text 1";
}
else{
	var blaat	= "hallo text 2";
}

```

It always shows “hallo text 2”, and I don’t understand why. What did I do wrong? Can somebody help me?

Yours,  
Paul Peelen
