Godot Version
4.2.2.stable.mono
Question
Creating a loop, I use a range like max value from it but it have different type of variable and cannot calcule it. Someone know how convert a IEnumerable to int?
4.2.2.stable.mono
Creating a loop, I use a range like max value from it but it have different type of variable and cannot calcule it. Someone know how convert a IEnumerable to int?
you cannot, you have x elements and you want compare all of them with >
?
if you have:
int[] table = Enumerable.Range(1, 10)
that’s is the same to:
int[] table = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
now answer is table
is bigger or smaller than 3?
you can compare all elements in table
to 3 but not whole table
, right?
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.