Hi Mark, There are a couple of ways to do this. You could use string functions on the value of the symbol; the function STRCMP returns 0 if the strings match. yes? LET year = 2000 yes? DEF SYM seas = djf yes? IF `STRCMP("($seas)", "djf") EQ 0 AND year EQ 2000` THEN SAY 2000_djf !-> IF 1 THEN SAY 2000_djf 2000_djf There's also the option of symbol editing, which is a compact but powerful way to deal with possible multiple options for the value of a symbol. Some examples: IF `($seas%0%)` means if seas is undefined then substitute the value 0. IF `($seas%0|djf>1%)` means if seas is undefined then substitute 0; if seas is djf then substitute 1 IF `($seas%0|djf>1|*>0%)` means if seas is undefined then substitute 0; if seas is djf then substitute 1; if seas is anything else then substitute 0. IF `($seas%0|djf>1|abc>2|*>0%)` puts in yet another option for the symbol being abc, in which case substitute 2. And so on. For our example: yes? IF `($seas%0|djf>1|*>0%) AND year GE 2000` THEN SAY this works too !-> IF 1 THEN SAY this works too this works too Mark Williams wrote:
|