No problem!
Function Invert(x)
Dim returnValue
If x = False Then
returnValue = True
Else
returnValue = False
End If
Invert = returnValue
End Function
Assigning to the name of the function will return the value that was assigned from said function.
Dee this tutorial on VbScript:
VBScript Tutorial[
^]
Regards,
Manfred