Sign in with
Sign up | Sign in
Your question

Versatile editor for multi-platform word game

Last response: in Technologies
Share
September 22, 2012 6:33:15 AM

Please help. No matter what settings, it returns the second condition.

Quote:

var cause, effect, interference;

interference = window.prompt("?");

Function
{
if (interference = "1")
{effect = "2"}


if (interference= "2")
{ effect = "4"

}
document.writeln(effect)
October 17, 2012 4:06:28 AM

If that code snippet is correct, you are missing a closing brace after effect="4".
!