Hi all,
I have this example script:
Result/Output:
https://i.imgur.com/ZOeRbKp.png
WHY is the list size 2 ? Does that make any sense? Because when you look at the loop result, there is only 1 entry (correct). And in the broadcast of the testlist, there seem to be 2 results ("test" and <none>)?
Can anybody tell me if that is a bug or if that is correct and why?
I have this example script:
Code:
command /listtest:
trigger:
add "test" to {_testlist::*}
add "name1" to {_testlist::test::members::*}
add "name2" to {_testlist::test::members::*}
broadcast "%size of {_testlist::*}%"
broadcast "%{_testlist::*}%"
message "-----"
loop {_testlist::*}:
message loop-value
Result/Output:
https://i.imgur.com/ZOeRbKp.png
WHY is the list size 2 ? Does that make any sense? Because when you look at the loop result, there is only 1 entry (correct). And in the broadcast of the testlist, there seem to be 2 results ("test" and <none>)?
Can anybody tell me if that is a bug or if that is correct and why?