Hey,
I have been reading the houdini manual section on vex. I must be understanding the documentation incorrectly. For instance, here is the syntax in the documentation for "if" statement:
if (condition) statement_if_true [else statement_if_false]
What I don't understand is that syntax doesn't work.
If I write: if (@id < 60) force.y = 20 [else force.y = -20];
that does't actually work. I must write this:
if (@id < 60) force.y = 20;
else (force.y = -10);
Writing it that way works. Why would it show the syntax the other way if it doesn't work?
Thanks