I am writing a function that may have one of three possible outcomes. I would like for it to end processing once an outcome is reached and return the proper value. I know if I were doing this in C I could do something like this:
if(a==1)
{
return 1
}
if(a==2)
{
return 2
}
if(a==3)
{
return 3
}
Where when the variable a was 1, it would enter that branch, and rerturn the value 1, then stop execution. How do I do the same in VBScript (VB 6.0)??
thanks,
--Bryan
if(a==1)
{
return 1
}
if(a==2)
{
return 2
}
if(a==3)
{
return 3
}
Where when the variable a was 1, it would enter that branch, and rerturn the value 1, then stop execution. How do I do the same in VBScript (VB 6.0)??
thanks,
--Bryan