Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4120

If statement based on item index

$
0
0

I have an arbitrary list of data that will vary in length. I have two basic expressions to apply to the data in these lists. Items with index 0 and -1 (start, end) need to be operated on by expression1, all other indexes will follow expression2.

Does anyone have ideas for a tidy, compact method to achieve this? My first though is expression editor but I am not certain if this can process if/else logic to check the index of the input data.

Any idea gratefully received.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4120

Trending Articles