Open main menu

Changes

Module:StringHelpers

1 byte added, 15:53, 12 April 2020
no edit summary
function p.getParagraphFromQuestion(param)
dashIndex = string.find(param.args[1], '-', 1, true); if((dashIndex ~= nil) and tonumber(string.sub(param.args[1], dashIndex-2, dashIndex-2)))
then
return "simple question" end  if( tonumber(string.sub(param.args[1], dashIndex-2, dashIndex-2))) elsethen return "complex simple question" end
end
end
return p