Again, the title speaks for itself.
This is what the Help file says:
Quote: "LIGHT TYPE
This command will return 1 for point, 2 for spot and 3 for directional light type.
Syntax
Return Integer=LIGHT TYPE(Light Number)
Parameters
Light Number
Integer
The light number
Returns
This command will return 1 for point, 2 for spot and 3 for directional light type
"
This is what you get:
sync on
sync rate 60
make light 1
make light 2
make light 3
set point light 1, 0, 0, 0
set spot light 2, 40, 60
set directional light 3, 0, 1, 0
make object sphere 1, 100
repeat
text 20, 20, "default light 0, light type = "+str$(light type(0))
text 20, 40, "point light 1, light type = "+str$(light type(1))
text 20, 60, "spot light 2, light type = "+str$(light type(2))
text 20, 80, "directional light 3, light type = "+str$(light type(3))
sync
until spacekey()