Tamis Posted November 4, 2007 Share Posted November 4, 2007 so i'm writing a vex sop operator. i got 2 variables int primm; vector pos; i derived these variable of the import(); command, so both variables ar basicly aray's. now i wrote a if statement: if(primm==1) { P=pos; } else { P=P; } now the problem is is that the if command only looks at the first point he gets and based on that he desides. rather or not to do 0 ore 1. is there a possebilaty to check on a per point basis ? Quote Link to comment Share on other sites More sharing options...
3dbeing Posted December 12, 2007 Share Posted December 12, 2007 not sure what the problem could be... you should really post the file. But for an `if` to iterate it needs to be inside some kind of `for` or `while` block. But again no idea how exactly you are trying to use your if. Or you can pipe in the point number as an iterator in vex as well. Quote Link to comment Share on other sites More sharing options...
sibarrick Posted December 12, 2007 Share Posted December 12, 2007 How does primm get set from the import() call? Are you making sure the import gets the point number that you want to use to check for the condition? Quote Link to comment Share on other sites More sharing options...
Tamis Posted December 13, 2007 Author Share Posted December 13, 2007 hey guy's thnx for the helps but this already a very old problem all fixed, can't even remember what i was doing. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.