04-21-2017 10:54 AM
Pretty sure this should be set up as an improvement but as far as I could tell you cannot Allof or Anyof a Boolean array. Its kind of a pain to type out locals.array[0],locals.array[1],...etc for say 50 variables. any thoughts on this or suggestions on going about it a different way?
Solved! Go to Solution.
04-24-2017 01:42 AM
is this the one you are talking about?
04-24-2017 03:37 AM - edited 04-24-2017 03:38 AM
Hi Brett,
Yes - it would be great to drop an array into these two functions rather than call out each element but unfortunately that's how they work ![]()
However, you can use the Contains() function to achieve the desired effect:
Locals.Any = Contains(Locals.Array, True) //Sets Any to True if any of the elements in Array are True Locals.All = Not(Contains(Locals.Array, False)) //Sets All to True if all of the elements in Array are True
I hope this helps,
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
04-24-2017 06:45 AM
yup!
04-24-2017 06:47 AM
Contains sounds good ill give it a try but it sounds like it will work for what im attempting to accomplish. Thanks!
04-24-2017 07:12 AM
No problem, glad I could help!
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor