A copy of arg1 or arg2, which could be of any type.
either returns a copy of arg1 if cond is something else than integer 0 (zero). Otherwise, a copy of arg2 is returned.
| SQLState | Error Code | Error Text | Description |
|---|---|---|---|
SQL> select either (mod (1, 2), 'odd', 'even');
callret
VARCHAR
_______________________________________________________________________________
odd
1 Rows. -- 33 msec.
SQL> select either (isnull (strstr ('Simurg', 'imu')), 'imu not found', 'imu found');
callret
VARCHAR
_______________________________________________________________________________
imu found
1 Rows. -- 4 msec.