Support Board
Date/Time: Sat, 08 Feb 2025 16:12:23 +0000
Post From: when to use [sc.Index]
[2020-07-13 14:14:19] |
User681150 - Posts: 62 |
i am learning the ACSIL language and am trying to understand the why & when to use certain parameters i have this simple function: this FAILS SCFloatArray opens = sc.BaseData[SC_OPEN];
SCFloatArray lasts = sc.BaseData[SC_LAST]; sc.Subgraph[0] = opens - lasts; BUT this works... why do i need to add [sc.Index] to the last line for it to work, but dont need it on first 2 lines?? or why do i need it at all if AutoLoop is set to 1? thanks for an explanation SCFloatArray opens = sc.BaseData[SC_OPEN]; SCFloatArray lasts = sc.BaseData[SC_LAST]; sc.Subgraph[0][sc.Index] = opens[sc.Index] - lasts[sc.Index]; |