Ansys Optics Help Center home page
Products
  • Ansys Optics
  • Downloads
  • What's new
  • Ansys Help
Solutions
  • Lumerical
  • Zemax
  • Speos
Learn
  • Ansys Innovation Courses (AIC)
  • Ansys Learning Hub (ALH)
  • Webinars
  • On-Demand Webinars
  • White Papers
Get Help
  • Welcome Guide
  • Ansys Learning Forum (ALF)
  • Lumerical Ideas Exchange (IX)
  • Ansys Support (ACSS)
  • How to Register for Support
Evaluate for Free
  • Lumerical
  • Zemax
  • Speos
  1. Ansys Optics
  2. Scripting Language
  3. Commands

TOP

== (equal) - Script operator

FDTD MODE DGTD CHARGE HEAT FEEM INTERCONNECT

Performs a logical comparison. This operators can be used with complex numbers and strings.

Syntax

Description

out = y == x;

Returns 1 if x and y are equal. Returns 0 otherwise.

Examples

This example shows the usage of the "==" operator.

a=1:5;
b=1:5;
b(4)=5;
?out=a==b;
result: 
1 
1 
1 
0 
1  

See Also

List of commands , = , almostequal , != , <= , >= , < , > , & , and , | , or , ! , ~

Associated files

Related articles

  • if - Script command
  • != (not equal) - Script operator
  • Lumerical scripting language - By category
  • almostequal - Script command
  • Using solve licenses with FDTD and MODE

Products

  • Ansys Optics
  • Downloads
  • What's new
  • Ansys Help

Solutions

  • Lumerical
  • Zemax
  • Speos

Learn

  • Ansys Innovation Courses
  • Ansys Learning Hub
  • Webinars
  • On-Demand Webinars
  • White Papers

Get Help

  • Ansys Learning Forum
  • Lumerical Ideas Exchange
  • Ansys Support
  • How to Register for Support

Evaluate for Free

  • Lumerical
  • Zemax
  • Speos
Hear the Latest from Ansys

Copyright 2025 Ansys Canada Ltd.


Ansys
  • Terms of Service
  • Cookie Policy
  • Privacy Policy
  • Legal Notices