Embedded Javascript

Hi,

How can I do:

asm
  if (xxx == 54) {
    do something
 }
end;

without the compiler thinking the { } are comments?

Thanks

Ken

I cannot see a problem with this.

This test works:


procedure TForm2.WebButton1Click(Sender: TObject);
begin
  asm
    if (1>0) {
      alert("hello");
    }
  end;
end;

Thanks.