Boolean Values
Only the values TRUE, FALSE, & NULL can be assigned to a Boolean variable. For illustration, given the declaration
DECLARE
done BOOLEAN;
the following statements are legal:
BEGIN
done := FALSE;
WHILE NOT done LOOP
...
END LOOP;
Whenever applied to an expression, the relational operators return Boolean value. Therefore, the assignment below is legal:
done := (count > 500);