GateKeeper
07-28-2002, 11:57 PM
I saw it once before, but cant find it again, but I am looking for information on how to use the "case" statement to control the value of other variables and functions. Any direction you guys can send me to get help with this will be appreciated.
GateKeeper
boxer_1
07-29-2002, 12:09 AM
Are you talking about something like:
var myText = "THIS IS ALL UPPERCASE, FOR NOW!"
var changed = myText.toLowerCase();
In the above example, the myText variable will be converted to lowercase. So if you went:
<script language="javascript" type="text/javascript">
document.write(changed);
</script>
The result would be:
this is all uppercase, for now!
Or am I completely off base and misunderstanding what you're asking?
x_goose_x
07-29-2002, 12:09 AM
Try devguru:
http://www.devguru.com/Technologies/ecmascript/quickref/switch.html
check out the site, it's very usefull.
I think he means case as in unix scripts.
GateKeeper
07-29-2002, 12:16 AM
yeah, it was the switch statement I was looking for (feels dumb now) anyways, that was a good site, now I just gotta get it working the way I want it to. Thanx
GK