in reply to Re: variable definitions
in thread variable definitions
First - you're using the wrong equality tester - if you want to test if a variable is equal to the string "true" use the eq operator.
This follow line has to be changed for 2 reasons - you are actually doing an assignment - the single equals = means $WeWantToMakeAChange gets the value of 'true'. Second you should use eq to evalue if a string is equal.
But why not use 1 for true and 0 for false instead of these strings?if( $WeWantToMakeAChange eq "true" ) { }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: variable definitions
by fourmi (Scribe) on Aug 15, 2003 at 13:49 UTC |