04-11-2023 10:41 AM
@Seiryuu90 wrote:
Thank you for the information and your advice! But I'd like to learn a way for this particular block diagram (autoindexed array) to just read the value when the last boolean is true.
Your question is incomplete, because you don't define "what value". The last Boolean is available at a "last value" tunnel, so you can take that and do whatever you need to do with it right after the loop has completed (since it is the last value, the loop will of course stop right there, else it would not be the last, right?)
For example you could OR or AND it with some other scalar Boolean.
04-11-2023 05:54 PM
What are you using here?
cause mine looks like this and doesn't do anything.
It should be true after the 5 iterations but that "value out" switch does nothing and I can't use it.
Also, what if I wanted to just use the "live" value of the indicator while it is being processed inside the second loop?
04-11-2023 06:23 PM
Well, you get the last reference out, so just read the value via another property node (yuk!).
You really (really!!!) need to start using data wires, not reference wires!
04-12-2023 04:56 PM
Oh! Didnt know that!
Ok which do I use to read for property node?
04-12-2023 05:46 PM
"Value", but change to read.
As mentioned so many times, this is NOT the right way to do this!
04-13-2023 05:29 PM
How to get only LAST reference out?
04-13-2023 08:38 PM
You. Need. To. Listen. To. All. Of. Us. And. Drop. These. Seriously. (Seriously!!!). Bad. Coding. Habits. This. Is. Not. Scalable!
Really!
04-14-2023 07:35 AM
@Seiryuu90 wrote:
How to get only LAST reference out?
You are getting 'only the last ref out'. If you don't want to do the stuff in the loop, disable or put it in a case.
04-14-2023 09:34 AM
@Yamaeda wrote:
You are getting 'only the last ref out'. If you don't want to do the stuff in the loop, disable or put it in a case.
Getting the last value at the end of the loop was the "requirements", other things happen in the other iterations. I have given up of the "why???" long ago in this thread. It's like watching somebody using chopsticks to fold a shirt. 😮
04-14-2023 09:37 AM
@altenbach wrote:
I have given up of the "why???" long ago in this thread. It's like watching somebody using chopsticks to fold a shirt. 😮
I honestly felt like we were being trolled.