in reply to Re: Correct Syntax
in thread Need help getting correct syntax for "if" statement
Dumps the extra "$flag"s and the negative conditional. Actually uses the returned value from the ternary.$flag = (index( $f1,'1') == -1) ? 0 : 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Correct Syntax
by Anonymous Monk on Aug 11, 2002 at 06:12 UTC |