What keywords is good return from Funciton

Hi!

I would like reorganise more workflow in our work and i want to expoit the capability of VBScript (for example condition, assignment, etc)

How should I use VBScript for specifying conditions between two states? Typically, based on the logical and/or combination of two variables (A, B), how can the process automatically proceed? Writing the VBScript is not a problem, but what is the keyword that the function should return (similar to assigning a value to a property as output)? Where can I find such examples or more detailed descriptions?

Option Explicit

'the example: VBCript in condition)

Dim wLogic1
Dim wLogic2

wLogic1 = PropertyValues.SearchForProperty( 1295 ).TypedValue.DisplayValue
wLogic2 = PropertyValues.SearchForProperty( 1300 ).TypedValue.DisplayValue

Output = wLogic1 or wLogic2

The VBScript Code place: Initiating a state transition when the conditions specified in the script provided by the user are met.

Thank you for help!