Module:MOS degrees: Difference between revisions
m Lookup functions use the mos data container thing itself, not its scalesig |
Added default value for nil value for prefix lookup |
||
| Line 752: | Line 752: | ||
mos_prefix = "" | mos_prefix = "" | ||
elseif string.len(frame.args['MOS Prefix']) == 0 then | elseif string.len(frame.args['MOS Prefix']) == 0 then | ||
mos_prefix_lookup = tamnams.lookup_prefix(input_mos) | mos_prefix_lookup = tamnams.lookup_prefix(input_mos) or "" | ||
if string.len(mos_prefix_lookup) ~= 0 then | if string.len(mos_prefix_lookup) ~= 0 then | ||
mos_prefix = mos_prefix_lookup | mos_prefix = mos_prefix_lookup | ||