This command will return 1 for point, 2 for spot and 3 for directional light type.

Syntax: 
Return Integer=LIGHT TYPE(Light Number)