Javascript to show layer?

Hi there,

Depending of the result stored in variable, I would show one of the possibles explanations placed on 20 separate layers. I don't know if it's possible to show layer via javascript.

I think it's something like this (exept for the lines "show layer abc"):

var player = GetPlayer();
var vTemp = player.GetVar("vFinal");

if (vTemp = "A")
   {
   show layer A  
   }

if (vTemp = "B")
   {
   show layer B
   }

if (vTemp = "C")
   {
   show layer C
   }

etc...

Thanks

And sorry for my English; I'm not English speaker.

1 Reply