2
0

README.iif 541 B

1234567891011121314151617181920
  1. --------------------
  2. IIF builtin function
  3. --------------------
  4. Function:
  5. Return a value of the first sub-expression if the given search condition
  6. evaluates to TRUE, otherwise return a value of the second sub-expression.
  7. Author:
  8. Oleg Loa <[email protected]>
  9. Format:
  10. IIF ( <search condition>, <value expression>, <value expression> )
  11. Syntax Rule(s):
  12. IIF (SC, V1, V2) is equivalent to the following <case specification>:
  13. CASE WHEN SC THEN V1 ELSE V2 END
  14. Example(s):
  15. SELECT IIF(VAL > 0, VAL, -VAL) FROM OPERATION