Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Operators

&

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

Is the logical AND function. Imaginary components of x and y are ignored.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

out = y & x;

If the real part of either or both of x,y are zero, then return 0. Otherwise return 1.

y and x;

Same as &.

 

Examples

This example shows the usage of the "&" and AND function.

? (2) & (4);

result:

1

?(3 > 4) and (4 >3);

result: 

? (0+1i) & (1);

result:

0

 

See Also

Operators, ==, !=, <=, >=, <, >, &, and, |, or, !, ~

Copyright Lumerical Inc. | Privacy | Site Map