Specification of the Fore language provides for using logical expressions for the statement but the specified expression cannot be implicitly cast to the logical type.
Check the type returned by the expression used in the statement. Use explicit transformation (the As statement) or special methods returning logical values.
Sub UserProc;
Var
b: Integer;
Begin
While b Do
End While;
End Sub UserProc;
When the specified code is compiled, the following error is displayed: Expression of logical type is expected. The error occurs because the "b" variable is Integer and cannot be implicitly cast to the Boolean type. To resolve the error, change type of the "b" variable.
See also: