Versatile editor for multi-platform word game

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)
1 answer Last reply
More about versatile editor multi platform word game
  1. If that code snippet is correct, you are missing a closing brace after effect="4".
Ask a new question

Read More

Games Document