[Thread Prev][Thread Next][Index]

IF syntax and variable test



Hello everyone !
I hope you can help me ... Does anyone know why this IF syntax does not work with my variable arg2 ?

LET arg2 = "mar"
IF ($arg2"T|mar>F|lsc>F|both>F|diff>F|") THEN USE "`arg2`"
 !-> IF T      THEN USE "$arg2"


Because it works with arguments taken from GO scripts ($3 for example in go script $1 $2 $3), but not with user-defined argument (it seems so, I hope I'm wrong). For example, if I call the script XX with 3 arguments : GO scriptX  lsc  both  mar
And then in this script there is this line :  IF $3"T|mar>F|lsc>F|both>F|diff>F|" THEN EXIT. It works !

Have a nice day and thank you !

Emilie V.

--
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>

Emilie Vanvyve - PhD student

Institut d'astronomie et de géophysique Georges Lemaître (ASTR)

Université catholique de Louvain / Département de physique

Chemin du cyclotron, 2

B-1348 Louvain-la-Neuve

Belgium

Tél. : +32 (0)10 47 33 00

Fax : +32 (0)10 47 47 22

E-mail : vanvyve@astr.ucl.ac.be

Toile : http://www.astr.ucl.ac.be


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement