Error line 10, pos 19: Assigning a constant of type 'integer' from an expression of type 'boolean'