this question is pretty straightforward. I want to be able to detect whether a variable is false, and set it to true, commonly known as toggle.

Here is it:

```
var hello = false  

function toggleSt(I, E)
 {
     if ((I == "activate") && (!E))
     {
          E = !E
          alert("activated")
     }
     else if ((I == "disable") && (E))
     {
              E = !E
              alert("disabled")
     }
 }

toggleSt("activate", hello)

alert(hello)

```

I pasted the code on JSFiddle,

<http://jsfiddle.net/kpDSr/>

Hello is still false.