<script>
var a = true;

if (a) {
  document.write("صحیح");
} else {
  document.write("غلط");
}
</script>