Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Manipulating objects

haveproperty

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

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