revised syntax of conditional tests to use [[, not if tests.