Loliscript statements

Hello! I can’t understand how statements work in OB2.
For example, I need to write this code:

IF $"<dom>" Contains "Invalid email, phone number, or password"
BLOCK:PuppeteerCloseBrowser
ENDBLOCK
ELSE
BLOCK:PuppeteerWaitForElement
  identifier = "element"
ENDBLOCK
END

Plz help.

P.S. This doesn’t work
image

IF STRINGKEY $"<dom>" Contains "..."
1 Like