summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/runtime/features/compare-null-not-equals-builtin.gd
blob: 8d5f9df1b82c3cc738eb53dbf9f1cb319aba6151 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
func test():
	var value

	# null
	value = null
	print(null != value)

	# bool
	value = false
	print(null != value)

	# int
	value = 0
	print(null != value)

	# float
	value = 0.0
	print(null != value)

	# String
	value = ""
	print(null != value)

	# Vector2
	value = Vector2()
	print(null != value)

	# Vector2i
	value = Vector2i()
	print(null != value)

	# Rect2
	value = Rect2()
	print(null != value)

	# Rect2i
	value = Rect2i()
	print(null != value)

	# Vector3
	value = Vector3()
	print(null != value)

	# Vector3i
	value = Vector3i()
	print(null != value)

	# Transform2D
	value = Transform2D()
	print(null != value)

	# Plane
	value = Plane()
	print(null != value)

	# Quaternion
	value = Quaternion()
	print(null != value)

	# AABB
	value = AABB()
	print(null != value)

	# Basis
	value = Basis()
	print(null != value)

	# Transform3D
	value = Transform3D()
	print(null != value)

	# Color
	value = Color()
	print(null != value)

	# StringName
	value = &""
	print(null != value)

	# NodePath
	value = ^""
	print(null != value)

	# RID
	value = RID()
	print(null != value)

	# Callable
	value = Callable()
	print(null != value)

	# Signal
	value = Signal()
	print(null != value)

	# Dictionary
	value = {}
	print(null != value)

	# Array
	value = []
	print(null != value)

	# PackedByteArray
	value = PackedByteArray()
	print(null != value)

	# PackedInt32Array
	value = PackedInt32Array()
	print(null != value)

	# PackedInt64Array
	value = PackedInt64Array()
	print(null != value)

	# PackedFloat32Array
	value = PackedFloat32Array()
	print(null != value)

	# PackedFloat64Array
	value = PackedFloat64Array()
	print(null != value)

	# PackedStringArray
	value = PackedStringArray()
	print(null != value)

	# PackedVector2Array
	value = PackedVector2Array()
	print(null != value)

	# PackedVector3Array
	value = PackedVector3Array()
	print(null != value)

	# PackedColorArray
	value = PackedColorArray()
	print(null != value)