Can someone explain how this function works?Function sGetColspan(lIN, lOUT)
if (strShowModerators = "1") then lOut = lOut + 1
if (mlev = "4" or mlev = "3") and (strShowModerators = "1") then lOut = lOut + 1
if (mlev = "4" or mlev = "3") and (strShowModerators <> "1") then lOut = lOut + 2
if lOut > lIn then
sGetColspan = lIN
else
sGetColspan = lOUT
end if
End Function
I know how it works, but how do you go about knowing what numbers to send to the function? What's the logic behind it?
For example: sGetColspan(7,6)
I thought that if no extra columns are needed, it would return the 7 (lIN) but if extra columns are needed, start with 6?
I dunno, this function isn't making sense to me.