How should i go about this IF?

Basically, here’s what i want to do:
If the message in fuchi is “Forbidden” then i wanna set the value of my constant to “No”
If the message in fuchi is not “Forbidden” then i wanna set the value of my constant to “Yes”

BLOCK:Parse
input = @data.SOURCE
leftDelim = “message":"”
rightDelim = “:”
MODE:LR
=> VAR @fuchi
ENDBLOCK
BLOCK:ConstantString
LABEL:Fuchibole
value = “”
=> CAP @FutbolPack
ENDBLOCK

IF STRINGKEY @fuchi Contains “Forbidden”
STRINGKEY @Fuchibole: “No”;
END

BLOCK:Parse
  input = @data.SOURCE
  leftDelim = "message"
  rightDelim = ":"
  MODE:LR
  => VAR @fuchi
ENDBLOCK

BLOCK:ConstantString
LABEL:Fuchibole
  => CAP @FutbolPack
ENDBLOCK

IF STRINGKEY @fuchi Contains "Forbidden"
BLOCK:ConstantString
LABEL:Fuchibole
  value = "NO"
  => VAR @FutbolPack
ENDBLOCK
END
2 Likes