About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2006

URL: http://cxc.harvard.edu/ciao3.4/__eqs.tm.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 __eqs Context: slangrtl

Synopsis

Test for equality between two objects

Syntax

Int_Type __eqs (a, b)

Description

This function tests its two arguments for equalit and returns 1 if they are equal, and 0 otherwise. To be equal, the data type of the arguments must match and the values of the objects must reference the same underlying object.

Example

__eqs (1, 1) ===> 1 __eqs (1, 1.0) ===> 0 __eqs ("a", 1) ===> 0 __eqs ([1,2], [1,2]) ===> 0

This function should be thought of as a test for "sameness".

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory.
60 Garden Street, Cambridge, MA 02138 USA.    Email: cxcweb@head.cfa.harvard.edu
Smithsonian Institution, Copyright © 1998-2004. All rights reserved.