comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » input expression as a variable.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
input expression as a variable. [message #50621] Fri, 06 October 2006 13:12
queiny is currently offline  queiny
Messages: 15
Registered: November 2005
Junior Member
Hi,

May I read in an expression and then used it in the 'IF' or 'WHILE' or
'CASE'?

For example, may I define the expression first, then use it? Or read in
expressions from standard input or input files?

expr1=' a gt 3'

if(expr1) then do begin
******
endif

It seems if I define 'expr1' as a string, and it is always true.. What
type should it be?

May I use something like:

readf, in_unit, expr1

or

readf, expr1, prompt='Enter Condition:'

so, the 'expr1' can be defined more flexiable.

Thanks

Q
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: reading .mat files in IDL
Next Topic: Re: input expression as a variable.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:48:14 PDT 2025

Total time taken to generate the page: 0.00564 seconds