summaryrefslogtreecommitdiffhomepage
path: root/tests/00_syntax/11_misc_literals
blob: 8a654e1c1d687b70707fa425dda05b062985ffbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
The utpl script language features a number of keywords which represent
certain special values.

-- Expect stdout --
The "this" keyword refers to the current function context: object
The "null" keyword represents the null value: null
The "true" keyword represents a true boolean value: true
The "false" keyword represents a false boolean value: false
-- End --

-- Testcase --
The "this" keyword refers to the current function context: {{ type(this) }}
The "null" keyword represents the null value: {{ "" + null }}
The "true" keyword represents a true boolean value: {{ true }}
The "false" keyword represents a false boolean value: {{ false }}
-- End --