Pipeline Rule Editor Fails on Basic 'if' Syntax in Graylog 5.2 (Docker)

Did you happen to get that from chatgpt, because if is not a thing in pipeline rules you get when, then, end and then functions inside the first two, thats it.