# IF statement problem AS2.0 / CS3

**URL:** https://forum.kirupa.com/t/if-statement-problem-as2-0-cs3/256141
**Category:** flash
**Created:** [March 31, 2008, 9:38am UTC](https://forum.kirupa.com/t/if-statement-problem-as2-0-cs3/256141 "2008-03-31T09:38:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Waldo](https://avatars.discourse-cdn.com/v4/letter/w/c0e974/32.png) [@Waldo](https://forum.kirupa.com/u/Waldo)
#### Post date: [March 31, 2008, 9:38am UTC](https://forum.kirupa.com/t/if-statement-problem-as2-0-cs3/256141/1 "2008-03-31T09:38:11Z")

</div>

Hi guys! This is my first post here, so I’ll try to be as concise as possible.

I’m designing a web portal with some quick links to various sites / services etc. I also want to include a network status monitor so people can see if there’s a problem with the internet (might stop people phoning us en-mass when there is a problem) So I have a movie clip with 3 frames each frame has it’s own colour of satus icon (Green / Yellow / Red)

CODE:  
[COLOR=blue] NS = STAT.Network;[/COLOR][COLOR=blue]  
if (NS == “G”) {tellTarget ("/st\_Network") {gotoAndPlay(1);}}[/COLOR]

This doesn’t work either!  
[COLOR=#0000ff] if (STAT.Network== “G”) {tellTarget ("/st\_Network") {gotoAndPlay(1);}} [/COLOR][COLOR=black] [/COLOR]

Variables file  
[COLOR=blue]&Network=R  
&Email=G  
&Internet=R  
&Telephony=Y  
&MSG=All systems go![/COLOR]  
[COLOR=#0000ff][/COLOR]  
I know that the variables are being pulled in (I can output them to screen) I also know that the other side of the IF statement works when I remove the IF. So I’m stuck!

Many thanks in advance!
