# \[FMX\] whats wrong with my if statement?

**URL:** <https://forum.kirupa.com/t/fmx-whats-wrong-with-my-if-statement/105893>\
**Category:** Uncategorized\
**Created:** [March 30, 2004, 7:58pm UTC](https://forum.kirupa.com/t/fmx-whats-wrong-with-my-if-statement/105893 "2004-03-30T19:58:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![afxtwn](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@afxtwn](https://forum.kirupa.com/u/afxtwn)\
**Post date:** [March 30, 2004, 7:58pm UTC](https://forum.kirupa.com/t/fmx-whats-wrong-with-my-if-statement/105893/1 "2004-03-30T19:58:43Z")

</div>

Everyday i’m slowly getting better at AS! WOO!

But right now i got a problem… i have a button on my timeline that i want to toggle fullscreen mode when the file is played as a projector. On my first frame i have in AS - [AS]fullscreen = 0;[/AS] which i hope sets a variable named fullscreen to a value of 0!

Now the AS in my toggle button is as follows :

```auto
on (release) {
if (fullscreen = 0) {
FSCommand("FullScreen", "true");
fullscreen = 1;
} else {
	FSCommand("FullScreen", "false");
}
}

```

It’s probably blindingly obvious to you whats wrong but could you possibly help out a newb?

Ta!  
🍺
