blob: 4b33a78f7e11338816b29a6a2f86e307c75b4627 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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 --
{% local t = { f: function() { return this; } } %}
The "this" keyword refers to the current function context: {{ type(t.f()) }}
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 --
|