non so se ho capito cmq

<body>
<script language="javascript">
codice:
// per impostare variabili
var A = 'FF';
var A = 'HH';
var A = 'WW'; 

if (A=='ff'){
  document.write('xx');
}
if (A=='hh'){
  document.write('yy');
}
if (A=='ww'){
  document.write('zzz');
}
</script>
</body>