Usually in lua, it’s easy to test if a certain variable is not defined, and prevent it from being processed.
For instance:
if table[i] then result = result + table[i]
will keep on working even if certain member of table or not defined.
However this doesn’t work on the Parameter map.
If I do a loop with the following statement contained therein:
if parameterMap.get(deviceId, PT_SYSEX, parNum) then ...
and it encounters a non existing parameter, it throws the error
ctrlv2/slots/p024.lua:463: failed: empty parameterMap entry
.
How can I avoid this, skip that parameter and continue, without having to build a register of the non existing paramters?