How to make this capture possible?

Hello people! and our amazing developer Mr. @Ruri
I paid a visit to the documentation of how you can make a capture out of a condition and I’ve tried IF with SET CAP using OB2 Native 0.2.4

Here is my example ↓

BLOCK:ConstantString
LABEL:VAR1
  value = "Hello World!"
  => VAR @VAR1
ENDBLOCK

IF STRINGKEY $"<VAR1>" Contains "Hello World!"
SET CAP @myCapture "We're Good To Go!"
LOG myCapture
return;
END

The thing is when the condition is matched I can’t see the sentence “We’re Good To Go!” marked as a capture! It prints in a white color in OB Log, Am I doing something wrong?

Hello @AINTHATEASY
Capture

string myString;

BLOCK:ConstantString
LABEL:VAR1
  value = "Hello World!"
  => VAR @VAR1
ENDBLOCK


IF STRINGKEY $"<VAR1>" Contains "Hello World!"
myString = "We're Good To Go!";
MARK myString
//CLOG Tomato myString
END

If you really want to see it in the debugger in red then uncomment the clog line

Capture

1 Like

So in my case it’s not doable with IF and SET CAP? Only can be done using MARK?