First time here? Check out the Help page!
1 | initial version |
The .spaceType
method returns a SpaceType
as an optional, as you can see in the variable output you posted. If you use .get
on an optional that is true, it will return the object wrapped in the optional. In your case space.spaceType.get.handle
will return the handle of the space type assigned to the space if that's what you'd like to compare. Is there a particular reason you need to compare space type handles?