'Then' appears to be missing in the web-based version. It should be below the IF. It is there in the desktop version. See screen shots below.
Not sure if this should be reported as a bug. For me, it is intuitive that the 'THEN' is understood to be there.