Question: can vbscript return a value?
Answer: Returning a Value from a Function A VBScript function can have an optional return statement. This is required if you want to return a value from a function. For example, you can pass two numbers in a function and then you can expect from the function to return their multiplication in your calling program.