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

All topics on coding 4Dscript in Enterprise Dynamics.
Post Reply
s.amin
Posts: 6
Joined: Monday 16 April, 2018 - 21:43

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

Post 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
User avatar
Gerben
Posts: 9
Joined: Monday 30 April, 2018 - 09:48

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

Post by Gerben »

Hi Amin,

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

Gerben
s.amin
Posts: 6
Joined: Monday 16 April, 2018 - 21:43

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

Post by s.amin »

Hi Dear Gerben,

Thanks a million, it was really helpful.

best regards,
Amin
Post Reply