How can I use that in an if statement? Obviously if I just do this: if $rule_text {...} it'll evaluate as true as long as it's not an empty string but that's not correct. I want to know if that string evaluates as true or false and set a flag variable as appropriate. I was hoping that this would work:($field[6] eq 'PM' && $field[8] eq 'CAVENDI')
but no luck.$ignore_flag = eval if $rule_text;
In reply to testing an if statement in a string by brcjacks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |