Jump to content

Position in arrays


Recommended Posts


If I have two arrays with 12 elements of strings and I will like to know if e.g. in both arrays the elements at position 4 are filled in with some values (I can check this with a blank string constant) and all others are blank how could I find out the position four?

I thougt of a case structure in which I will list all possibilities.


Link to post

If you take one of the sting array controls and an empty string constant, wire them both to a 'not equal' operator, the result is a boolean array. Each element of the array shows you if the corresponding element of the string array is filled or not. Now if you check position 4 of the boolean array it shows you whether that position is filled. Do that for both arrays and 'and' the results and you will know, whether both positions are filled.


Link to post
Everyone... Let's not forget the "Empty String/Path?" Function. It can also check if a string is empty (blank) with only one node.


"Empty String/Path?" is very useful. Here is an undocumented feature of that function -- checking if a Variant is null. :thumbup:


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.