<script> var a = 5; if (a == 1) { document.write("صحیح"); } else if (a == 2) { document.write("غلط"); } else { document.write("ارور"); } </script>