loop - with "if current set element" inside

Hi,

I want to loop the set Abs. The if function should do some statements, if the current set element is “Basis1”.
What´s the Synatx for this?

set Abs / "Basis1", "Basis2" /;

loop (Abs,

if       ([b]HOW TO DO THE SYNTAX?[/b],
         ... ;
         );
...
);

Thank you very much!

Hi

You could use “sameas”:

loop(abs, 
      b(abs) = 2;
      b$(sameas(abs, "Basis1") = 4;

Cheers
Renger