IF Else // Capture

Hi, I want him to give capture without the need for a blog when he doesn’t find the desired answer in a block

Example

BLOCK:ConstantString
value = "request to be given"
=> VAR @Test2
ENDBLOCK
IF STRINGKEY @Test2 Contains "1"
// If he finds it here, I want him to capture the value that appears at the bottom
=> CAP @Finance "Yes Noney"
IF STRINGKEY @Test2 Contains "2"

// If he finds something different from the value shown above, I want to catch it
=> CAP @Finance "No Money"
END

// but I want them in one capture

// 2 Capture I don't want to show

I hope I’ve made myself clear to you.

I don’t understand, there is a big language barrier

1 Like

this is old topic but maybe helpful ,

first thing , u used 2 IF , then have to use 2 END

that is like u used 2 ( . then have to close it with 2 )

and for capture , when u use IF , WHILE JUMP . have to set capture value out of statement otherwise not showing in capture .

fixed code :

string finance;
BLOCK:ConstantString
  value = "request to be given"
  => VAR @Test2
ENDBLOCK
IF STRINGKEY @Test2 Contains "1"
finance = "Yes Noney";
MARK finance
IF STRINGKEY @Test2 Contains "2"
finance = "NO Money" ;
MARK finance
END
END