求答案,该怎么处理

求答案if edit1.Text:1thenform2 show end错在哪为什么提示错误是 type of expression must beboolea

求答案
if edit1.Text:='1'then
     form2 show ;
end;

错在哪
为什么提示错误是 type of expression must be  boolean boolean
[解决办法]
if edit1.Text:='1'then
改成
if edit1.Text='1'then
:=是赋值,判断直接一个=号就可以了