Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Is - operator of language VBScript

Description:
Used to compare two object reference variables.
Syntax:
result = object1 Is object2
Note:
If object1 and object2 both refer to the same object, result is true; otherwise result is false. Two variables can be made to refer to the same object in several ways.
Example1:
In the following example, o1 has been set to refer to the same object as o2:
Dim o1, o2
Set o1 = o2
The following example makes o1 and o2 refer to the same object as o3:
Set o1 = o3
Set o2 = o3
Example2:
Example for testing the returned Nothing value:
Dim oItem
Set oItem = oData.Item("abc")
If oItem Is Nothing Then
  ' ... error
End If
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice