If you do:
Everything will return "3" regardless if it's include or exclude.
EDIT: Whoops, of course as soon as I post I figure it out. That's Illumination/Shadow/Both not Include/Exclude.
Code:
for o in lights do print (o.name+" "+(o.inclexcltype as string))
EDIT: Whoops, of course as soon as I post I figure it out. That's Illumination/Shadow/Both not Include/Exclude.