It is possible to use a VB Policy Script in a Workflow If/Else Branch in order to perform computations and return a value in order to determine which branch should be used.
However, if the VB Policy Script uses an explicit Return statement, such as this sample:
The Return statement should not be used. Instead, the desired return value should be assigned to the function name. The below is a re-write of the sample script above, which will execute and return a value of 1 without using an explicit return statement: