1 The ucode script language features a number of keywords which represent 2 certain special values. 3 4 -- Expect stdout -- 5 The "this" keyword refers to the current function context: object 6 The "null" keyword represents the null value: null 7 The "true" keyword represents a true boolean value: true 8 The "false" keyword represents a false boolean value: false 9 -- End -- 10 11 -- Testcase -- 12 {% let t = { f: function() { return this; } } %} 13 The "this" keyword refers to the current function context: {{ type(t.f()) }} 14 The "null" keyword represents the null value: {{ "" + null }} 15 The "true" keyword represents a true boolean value: {{ true }} 16 The "false" keyword represents a false boolean value: {{ false }} 17 -- End --
This page was automatically generated by LXR 0.3.1. • OpenWrt