SHOW CAPTURE ERROR

i Got this error:
Capture in debugger is showed as this pic below:

But in Jobs it not show

I dont know why?
Thank you.

Because you are setting it inside an IF statement. Initialize the variable outside of the IF and then set its value inside.

Seems not work, can you fix it for right?
IF INTKEY @WINcomputeOutput LessThan @LOSEcomputeOutput

SET VAR @ListOutput1

ELSE

SET VAR @ListOutput2;

END

// You MUST define these two BEFORE the IF
SET VAR @ListOutput1 ""
SET VAR @ListOutput2 ""

IF INTKEY @WINcomputeOutput LessThan @LOSEcomputeOutput
SET CAP @ListOutput1 "It's less"
ELSE
SET CAP @ListOutput2 "It's more"
END

I dont understand clearly Sorry for that, because my level . But I mean this:
I have a block with var listoutput1
I have a block with var listoutput2

IF INTKEY @WINcomputeOutput LessThan @LOSEcomputeOutput
I wanna value of var @listoutput1 show here and set with capture
ELSE
I wanna value of var @listoutput2 here and set with capture
END

You can use C# directly to do this, it’s easy

SET CAP @Result ""

IF INTKEY @WINcomputeOutput LessThan @LOSEcomputeOutput
Result = ListOutput1;
ELSE
Result = ListOutput2;
END

I got this error

Ah yeah they are lists. You need to do this then

List<string> Result;

IF INTKEY @WINcomputeOutput LessThan @LOSEcomputeOutput
Result = ListOutput1;
ELSE
Result = ListOutput2;
END

Or the full C# version

var Result = 
    WINcomputeOutput < LOSEcomputeOutput ?
    ListOutput1 : ListOutput2;
2 Likes