SET STATUS FAIL in OB2

Hello,
I wanted to know how to set SET STATUS FAIL to work in OB2 in the following code?

IF INTKEY @PASSLength LessThan 8
SET STATUS FAIL
ELSE
JUMP #FINAL
END

IF INTKEY @PASSLength LessThan 8
data.STATUS = “FAIL”;
ELSE
JUMP #FINAL
END

But

You can also set a rule in Config Setting like this:

PASSWORD LongerThan 7

Thank you,
It worked but I had to change your " to these "
They look the same but they are not.
Regards.

Yes, it’s a problem of copy/paste.

It works but I have encountered a problem that is the following:
It doesn’t stop there displaying STATUS FAIL, but continues through the block below.

You must enter “;” after the text “FAIL” to stop… but make sure that the FAIL condition is not selected in the “Statuses for wich the bot will continue/stop” settings.

I show you the complete config and that the FAIL condition is not selected in the “Statuses for which the bot will continue/stop” settings.

BLOCK:Length
LABEL:PASSLength
input = @input.PASS
=> VAR @PASSLength
ENDBLOCK

IF INTKEY @PASSLength LessThan 8
data.STATUS = “FAIL”;
ELSE
JUMP #FINAL
END

#FINAL

BLOCK:ConstantString
LABEL:Credits
value = “By HITALL”
=> CAP @Credits
ENDBLOCK

Sorry, it’s my Fault !!!
You must Insert “return;”

IF INTKEY @PASSLength LessThan 8
data.STATUS = “FAIL”;
return;
ELSE
JUMP #FINAL
END

Yes now.
Thanks for contributing your knowledge.