IT 275 - Story:#4122 Compare Helper Update

no, you can still write this in a switch statement, but the `$data` variable needs to be sanitized.

e.g.

```php
$data = strtolower($data);

switch ($data) {
    case 'true':
        ...
        break;
    case 'false':
        ...
        break;
...
}
```

The above example wont cover all the changes required for this scenario though, there will need to be some more conditionals before the switch to do some other stuff for `is_numeric` etc.