E1063: condition is not a Bool
A case guard and an if condition decide which way the program goes, so they must have type Bool.
A case guard and an if condition decide which way the program goes, so
they must have type Bool. Actus has no truthy or falsy values, and an
integer is not a condition. ADR-0016 sets this rule for guards and ADR-0049
sets it for if. The message says whether it is a guard
or an if and names the type that was found. The error points at the guard
or at the condition.
Example
actus
actus
Fix
Compare the value to get a Bool.
actus
actus
Run actus explain E1063 in your terminal to read this entry offline. Browse Ownership & types or all error codes.