Home Component Writing
New Blog Posts: Merging Reports - Part 1 and Part 2

Assigning three values with a single IF

aydayd
edited October 2022 in Component Writing
Hello,

In a hospital software, reports are written with Report Builder. Extension .rtm

My question is

How can I use what I need to do after Then in a single if?
If if is ok, I want all the ones below to be false.


When I use begin - end I get the error Line 1: Expected: 'repeat' or 'while', but found 'begin' instead.
 if DBPipeline['ACCOUNT'] = 'NWM'
then
NucleusCB.Visible := False;
WindowsCB.Visible := False;
MailCB.Visible := False;

Comments

  • Problem solved.
    IF
    DBPipeline['HESAP'] = 'NMW'    
    THEN
    BEGIN
          wCB.Visible := False;
          nCB.Visible := True;
          mCB.Visible := True;
    END;
Sign In or Register to comment.