Module:MOS modes: Difference between revisions
No edit summary |
No edit summary |
||
| Line 92: | Line 92: | ||
-- and the number of columns are greater than zero, and if so, determine whether the number of entries | -- and the number of columns are greater than zero, and if so, determine whether the number of entries | ||
-- is equal to the number of headers times the number of modes | -- is equal to the number of headers times the number of modes | ||
local add_columns = | local add_columns = #headers > 0 and #entries > 0 | ||
if add_columns then | if add_columns then | ||
add_columns = add_columns and #modes * #headers == #entries | add_columns = add_columns and #modes * #headers == #entries | ||