Back to Index

Definition: if (expr) { ... } [else { ... }] — Allowed: numeric expression; braces are required.

Conditional execution. Parentheses are required around the condition, and braces are required for all branches. else if is supported and nesting works normally.

Example

if (temp() > 250) {
  out(1) = 1;
}
else {
  out(1) = 0;
}