0

I'm new to AL (Business Central). I want to be able to test the value of an option field.

if myOptionField::Booking then 
begin
  Message('Booking');
end;

But it didn't work.

halfer
  • 19,824
  • 17
  • 99
  • 186
AbdulAzeez Olanrewaju
  • 976
  • 1
  • 13
  • 32

1 Answers1

1

I recomend you to try this way.

if rec.myOptionField = myOptionField:: Booking then
begin
  Message('Booking');
end;
Hmsa
  • 26
  • 1