2,851
edits
No edit summary |
No edit summary |
||
Line 40: | Line 40: | ||
-- Retrieve data value for the current cell, using the nested structure | -- Retrieve data value for the current cell, using the nested structure | ||
local cellValue = study.biomarkers[bm.key] or "" | local cellValue = study.biomarkers[bm.key] or "" | ||
if cellValue == "x" then | |||
cellValue = 'style="background-color:gray;" | ' | |||
elseif cellValue ~= "" then | |||
cellValue = 'style="background-color:gray;" | ' .. cellValue | |||
end | |||
wikitable = wikitable .. ' || ' .. cellValue | |||
end | end | ||
wikitable = wikitable .. '\n' | wikitable = wikitable .. '\n' |