-
I'm having trouble understanding what's going on here:
This happens when I write a Some of the usual |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You're right, it's not quite like Golang but very similar.
The KNX protocol defines that scene numbers start at value
The scripts lets you append values to an array using the var array = [10]
println(array + 1) // [10, 1] Note that this is not possible in Go. In Go you would have to use the var array = []uint8{10}
println(append(array, 1)) // [10, 1]
See above.
This seems weird for me as well. 🤔
First, the |
Beta Was this translation helpful? Give feedback.
You're right, it's not quite like Golang but very similar.
byte
is actually anuint8
.see https://golang.org/src/builtin/builtin.go?s=2701:2718#L78
The KNX protocol defines that scene numbers start at value
0
. But for users they start at1
.Scene
41
is actually the byte value40
. 😉The scripts lets you append values to an array using the
+
-operator like this.