diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-22 23:49:52 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-22 23:49:52 +0200 |
commit | e7c8a04078261b331b00490ffbffd9ff05d1e0d0 (patch) | |
tree | 4df3cb197f6b3baab3bb0272acbf1e38d27eb68b /example.tsl | |
parent | e9e41c02d4309cd50b5584a8dfc0d7e01cb27e10 (diff) |
Add variable to list value and map key
Diffstat (limited to 'example.tsl')
-rwxr-xr-x | example.tsl | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/example.tsl b/example.tsl index eb92e0e..861db41 100755 --- a/example.tsl +++ b/example.tsl @@ -41,9 +41,10 @@ list_index_value = value5[0] # loadn 1 # loadn 2 -# list 2 +# loadv "list_index_value" +# list 3 # setv "list1" -list1 = [1, 2] +list1 = [1, 2, list_index_value] # loadn 3 # loadn 4 @@ -65,6 +66,14 @@ list3 = list1 + list2 # setv "value6" value6 = {"hello": "world", "value": 23} +# loads "hello" +# loads "world" +# loads "value" +# loadn 23 +# map 4 +# setv "value6_1" +value6_1 = {hello: "world", value: 23} + # loadf 1 // loadf1 begins at once, because the file body itself is function 0 # setv "value7" value7 = fn () {} |