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" ) { }
In reply to Re: Re: variable definitions
by stajich
in thread variable definitions
by fourmi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |