Hello

It's my second day of trying to learn Object Pascal and I'm trying to practice some If, Then, Else statements. However, the code doesn't work (and it doesn't show any errors either). I have reread the code multiple times but I can't figure out what's wrong with it:
procedure TForm1.Edit2Change(Sender: TObject);
begin
If Edit2.Text = ''
Then Button1.Enabled := False
Else Button1.Enabled := True
End;
What this code is supposed to accomplish is enabling a button only if there is text in the textbox, however, the button remains disabled even when the button has anything other than '' (nothing) inside it.
Can anyone tell me what's wrong with the code (without explicitly giving me the code to fix it).
Thanks for your help, again
