N
Noozer
I want to return one of several values, based on the value of a variable.
Is there a compact way to write this? Something like:
var J=5;
var K= {"One","Two","Three","Four","Five","Six"} [J] ;
.... so K would hold "Five" in this case.
Thx
Is there a compact way to write this? Something like:
var J=5;
var K= {"One","Two","Three","Four","Five","Six"} [J] ;
.... so K would hold "Five" in this case.
Thx