this is one of those cases when
"What goes without saying"
goes better with saying.
ie be more explicit in your test.
inlist(p_web.gsv('MAI:SizeLimit'),1,4,8) > 0
is better than just
inlist(p_web.gsv('MAI:SizeLimit'),1,4,8)
Because ultimately this condition is placed in a CHOOSE statement, and Choose has 2 forms, and because InList returns a number it uses the wrong form.
cheers
Bruce