The foto above is roughly how I would like to program something, but it seems like it doesnt work.
The foto below is how I have to do it, but this makes it very messy, especially when theres more cases and they need to be changed. Is there a better way to do the bottom if statement to look more like the upper one and still work.
In general, no there isn’t. That’s true for most programming languages. However in your example at least they are all continuous numbers so you can just do something like “pointcounter>19 and pointcounter<24.”
I think this might be relating to your other posts regarding arrays of poses and knowing when one is MoveL vs MoveJ maybe? You may benefit from using a Struct here that can store multiple pieces of information. I haven’t messed around with them yet, I just know they were new with the most recent release of polyscope. In theory you can create a Struct to hold a Pose, a blend radius, and a boolean value. You can this store an array of these Structs and iterate through each one calling stuff like
pose_array[index].isMoveL
To check if it needs to be MoveL or whatever. Again, I might be completely off base here, or maybe you can’t make an array of structs, I’m not sure. Might be worth looking into though!