How to do this in openbullet 2?

SET CAP "Status | Account: <COD>" "<Status>"
SET CAP "Document | Account: <COD>" "<Document>"
SET CAP "Company Name | Account: <COD>" "<Company Name>"
SET CAP $"Status | Account: <COD>" "<Status>"
SET CAP $"Document | Account: <COD>" "<Document>"
SET CAP $"Company Name | Account: <COD>" "<Company Name>"

Not really sure it will work to be honest. Why not just use a constant string block and mark as capture?

[IDLE] CompilationErrorException: (132,9): error CS1002: ; expected

I cant put the <COD> value in Output variable

it was to be something like that:

Status | Account: 00000000 = Aprovved
Document | Account: 00000000 = 000000000
Company Name | Account : 00000000 = IDK

Status | Account: 111111111 = Aprovved
Document | Account: 111111111 = 11111111111
Company Name | Account : 111111111 = IDK TOO

SET VAR @COD "CODE"
SET VAR @Status "Status Value"
SET VAR @Document "Document Value"
SET VAR @CompanyName "Company Name"

BLOCK:JoinList
  list = $["Status | Account: <COD> <Status> || ", "Document | Account: <COD> <Document> || ", "Company Name | Account: <COD> <CompanyName>"]
  separator = ""
  => CAP @ListCapture
ENDBLOCK
2 Likes

Hey, it worked but it doesn’t show the capture in variables or in the runner

logs
image

variables
image

runner

note: i made a while to see several codes maybe it’s because it inside a while?? :thinking:

you need to use AddToList not JoinList because it is in loop

something like this

BLOCK:ConstantList
  value = []
  => VAR @ConstantList
ENDBLOCK

// --- WHILE START

SET VAR @COD "CODE"
SET VAR @Status "Status Value"
SET VAR @Document "Document Value"
SET VAR @CompanyName "Company Name"

BLOCK:AddToList
  list = @ConstantList
  item = $"Status | Account: <COD> <Status> ||  Document | Account: <COD> <Document> ||  Company Name | Account: <COD> <CompanyName>"
ENDBLOCK

// --- WHILE END

BLOCK:JoinList
  list = @ConstantList
  separator = ""
  => CAP @ListCapture
ENDBLOCK
2 Likes

hello it worked thank you so much for the help :slight_smile:

1 Like