doing a comparison in python

Mathew Yeates mat.yeates@gmail.com
Tue Aug 17 00:35:00 GMT 2010


no. it's a logical. Either .TRUE. or .FALSE.

On Mon, Aug 16, 2010 at 5:26 PM, Michael Snyder <msnyder@vmware.com> 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:
>
>   long foo = value_as_long (parse_and_eval (my_value));
>
>   if (foo == 0)
>      [...];
>
>



More information about the Gdb mailing list