C.1.30. Error 34 - Logical value not 0 or 1.
An expression was found e. g. in an IF, WHEN, WHILE, or UNTIL phrase that did not result in a 0 or 1. Any value operated on by a logical operator must result in a 0 or 1. For example, the clause "If result then exit rc" fails if result has a value other than 0 or 1.