Page 1 of 1

Help in creating a list with integers values for the loop to work

Posted: Tue Feb 13, 2018 9:34 am
by sudesh
Hi,

I would like to do a loop in with the level changes. The level are integers values ( 1.75, 2 and 2.5)

I would like to create a list with integers values for the loop to work.

Sample of my code:

string list = "1.75 2 2.5 "

for %u {%list}

!full_exp = 1

if zsc_{%u} > {%u} then signal_{%u} = -!full_exp
else if 0
end if

next

Any help will be greatly appreciated.

Thanks.

Re: Help in creating a list with integers values for the loop to work

Posted: Tue Feb 13, 2018 9:43 am
by EViews Gareth
Looks like the for loop part of your code will work just fine.

I'll point out that 17.5 is not an integer by the way.