Please enable JavaScript to view this site.

Knowledge Base

Returns the number of selected objects with a particular property.

 

Supported Product: FDTD, MODE, DEVICE

 

Syntax

Description

out = haveproperty("property");

Returns the number of selected objects with the specified property.

 

Example

Add a circle and a rectangle. Use haveproperty to show that both objects have the property 'x', but only one has the property 'radius'.

addcircle;

addrect;

selectall;

?haveproperty("x");

?haveproperty("radius");

result:
2

result:

 

See Also

Manipulating objects, get, set

Copyright Lumerical Inc. | Privacy | Site Map