I am Trying to add a anything But in JavaScript

I Know The Above Title is a bit Confusing but What I’m Looking for is Something like this

function Update () {
if (Screen.fullScreen <> !Screen.fullScreen){
Screen.fullScreen = !Screen.fullScreen;


I need to tell if my game is not Full Screen then make it Full Screen And i am not sure about how to do that. I Know that in .net i would use <>. any help would be Nice and Thank you

You should be able to make the game full-screen if it’s not already using something like:

if (!Screen.fullScreen) { Screen.fullScreen = true; }

Though, it shouldn’t hurt to simply set it to full-screen regardless of what mode it’s currently in. To do that, just drop the “if”.

Screen.fullScreen = true;