The following code:
fun process(phase: real) {
val why : bool = getSwitch(1);
return phase;
}
and update() {
_ = display("Why?");
}
Results in this error:
[string "C:\Users\Thorsten\Documents\Rack\prototype\ph..."]:24: 'struct LuaProcessBlock' has no member named 'switch'
Which as far as I can tell from template.vult is how you’re supposed to get the switch. Am I doing something wrong?