how do you pass a variable to the case statement?
this works
declare vVal string one
Switch "${vVal}"
{
case one
echo val is one
break
Default
echo "can't find vaule"
break
}
but this won't work for some reason
declare vTest string one
declare vVal string one
Switch "${vVal}"
{
case ${vTest}
echo val is one
break
Default
echo "can't find vaule"
break
}
btw where should I be posting LavishScript questions I did not see a LavishScript Forum category
switch case does not work with vars
Moderators: Lavish Software Team, Moderators
-
- Non-Subscriber
- Posts: 22
- Joined: Mon Jul 12, 2004 8:27 am
-
- Non-Subscriber
- Posts: 22
- Joined: Mon Jul 12, 2004 8:27 am