EDIT: See posts below
I need to combine 2 strings. How can I do this in a setprop?
Here is what I want it to do, this won't work however, since + expects a number.
- Code: Select all
var button = func(btn) {
var scratchpad = getprop("/MCDU[0]/scratchpad");
if (btn == "A") {
setprop("/MCDU[0]/scratchpad", scratchpad + "A");
} else if (btn == "B") {
setprop("/MCDU[0]/scratchpad", scratchpad + "B");
}
}
Thanks,
Josh