Page 1 of 1

what is the meaning of " i.row :=2 " in following code?

Posted: Wednesday 25 April, 2018 - 23:37
by s.amin
Hello,
dear community

I saw an example model, with code bellow written in the "trigger on exit" of a "source" atom, but i couldn't understand what is the meaning of this code:

if(
output(c)<=20,
do(
i.row := 2,
i.column := Output(c)
),
do(
i.row := 3,
i.column := output(c)-20
)
)


to make it more clear, i don't know what is the usage of " . " ??? {i know how IF & DO functions work, my problem is dot (.) }

Best Regards,
Amin

Re: what is the meaning of " i.row :=2 " in following code?

Posted: Monday 30 April, 2018 - 10:32
by Gerben
Hi Amin,

i.row refers to label 'row' on atom 'i'.
i.row := 2 equals Label([row], i) := 2

Gerben

Re: what is the meaning of " i.row :=2 " in following code?

Posted: Wednesday 02 May, 2018 - 09:46
by s.amin
Hi Dear Gerben,

Thanks a million, it was really helpful.

best regards,
Amin