Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Operators

or

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

Is the logical OR 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 is non-zero, then return 1. Otherwise return 0.

y or x;

Same as |.

 

Examples

This example shows the usage of the "|" and OR function.

? (2) | (4);

result: 

?(3 > 4) or (4 >3);

result: 

1  

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

result: 

 

See Also

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

Copyright Lumerical Inc. | Privacy | Site Map