Parallel if statement, ifp()

  • ifp is a parallel version of if
  • then clause: active only where condition is true
  • else clause: active only where condition is false
  • i.e., ifp restricts the context of operations
  • for example, ifp (A < 0) B = -A; else B = A;
  • also, ifp can be nested
    next...
    prev...
    begin lecture again...