Conditional Functions

 
 
 

Function Description
If(expr1, expr2, expr3) Returns the value of the second or third expression, depending on the evaluation of the first one: if expr1 evaluates to true, returns to expr2; returns expr3 otherwise. Expr1 is a boolean expression. Expr2 and expr3 can be two values, two vectors, or two boolean expressions. This enables users to piece together snippets along the time domain.