IF

THE BOX'S MAIN HELP:
Passes the value T_VAL or F_VAL to the output, depending on COND:
.    IF (COND) OUT=T_VAL 
.    ELSE      OUT=F_VAL

COND (input):
Value to be tested; Any non-zero value is TRUE, '0' is false.

T_VAL (input):
Value to be passed if COND is true (non-zero).
May be any data type.
But must be the same data type as A.

F_VAL (input):
Value to be passed if COND is false (zero).
May be any data type.
But must be the same data type as A.

OUT (output):
Resulting value (either T_VAL or F_VAL) based on COND:
If COND is true,  OUT is T_VAL.
If COND is false, OUT is F_VAL.

<-- BACK TO Logic

© Copyright 1996,1998 Cinema Graphics Inc. All Rights reserved.