conditional statements for Jitter?

jg's icon

Hi, I'm probably being thick, but is there an equivalent of the 'if' object for Jitter matrices?

i.e. expr's equivalents are vexpr or jit.op - and while the latter has some conditionals (such as < and >), I can't find an explicit "if...then" structure.

gobo's icon

Javascript is one of the solutions

Jesse's icon

There is no direct equivalent in Jitter. You'll have to find a way to chain jit.op statements or use jit.expr.

Rob Ramirez's icon

describe further what you are trying to achieve, and perhaps someone will offer a solution.

Roman Thilenius's icon

yeah, jit.expr. unless you need more than one output