Module:MOS modes: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
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 = number_of_columns > 0 and number_of_entries > 0
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