Jump to content

If() Statement Complications


Tamis

Recommended Posts

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 ?

Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

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.

Guest
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...