if ( true ) document.write("foo"); else document.write("bar");