From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8374 invoked by alias); 17 Aug 2010 00:35:40 -0000 Received: (qmail 8360 invoked by uid 22791); 17 Aug 2010 00:35:38 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM X-Spam-Check-By: sourceware.org Received: from mail-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Aug 2010 00:34:44 +0000 Received: by wyg36 with SMTP id 36so6996474wyg.0 for ; Mon, 16 Aug 2010 17:34:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.35.213 with SMTP id u63mr103878wea.83.1282005281982; Mon, 16 Aug 2010 17:34:41 -0700 (PDT) Received: by 10.216.170.147 with HTTP; Mon, 16 Aug 2010 17:34:41 -0700 (PDT) In-Reply-To: <4C69D737.1080200@vmware.com> References: <4C69D737.1080200@vmware.com> Date: Tue, 17 Aug 2010 00:35:00 -0000 Message-ID: Subject: Re: doing a comparison in python From: Mathew Yeates To: Michael Snyder Cc: "gdb@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-08/txt/msg00109.txt.bz2 no. it's a logical. Either .TRUE. or .FALSE. On Mon, Aug 16, 2010 at 5:26 PM, Michael Snyder wrote: > Mathew Yeates wrote: >> >> Hi >> I am debugging fortran code and I want to see if an interior value is >> equal to .FALSE. >> I know how to get the value with parse_and_eval but what do I do with it? > > Can we assume this value is an integer? > Then you should be able to do something like this: > > =A0 long foo =3D value_as_long (parse_and_eval (my_value)); > > =A0 if (foo =3D=3D 0) > =A0 =A0 =A0[...]; > >