Array Lengths and Literal Values

Hi there, can someone tell me why is this considered a compile error.

I outputted an array, get it’s length and do an integer comparison

It makes no sense, the output is clearly an integer.
If literal value is what it’s having problem with, comparing two array would also give the same problem.

Apparently I found out I am unable to make any useful mathematical operations with array lenght.

The problem might be that the ‘filter array’ node is not being executed, is execution pin is not connected to anything.

hmmm… shouldn’t the execution be coming from the ‘Branch’ in front? similar to operation involving comparing value. Plus Error message seems to be talking about something else.

Either way I’m going to try it.

If a node has execution pins, it needs to be executed to work, so you will want to connect this before the branch node that uses the result.

yup apparently it works. I was assuming the execution at the further down branch will cause the preceding nodes to be activated in order to return the value.

So the error message is erroneous then i’m assuming.

Hi there!

sometimes you have to convert an integer to and from related types

you might try turning off the context sensitivity in the right click menu and see if there’s any other integer conversions that might help with your current issue

here’s a pic!

in case you didnt know, uploading pics is fine, just make sure to embed them in your posts, dont upload them to separate service.

you can use the picture button provided in this posting system :slight_smile:

welcome to the epic udn forums!

Rama

I don’t think conversion is an issue it explicitly says the output is an integer, and it makes sense, array length is indeed an integer.

Context sensitive is also on while I search for the “>” function.
This is a ridiculously simple function. But I don’t rule out I’m missing something.