Comput parsed values

Hey, i need some help with this parte of the code:

BLOCK:Compute
LABEL:MOEDAS
  input = $"<MOEDA1>+<MOEDA2>+<MOEDA3>+<MOEDA4>"
  => CAP @MOEDAS
ENDBLOCK

When some of the moeda var come with value null or 0 i get this error on console:

[Executing block MOEDAS] SyntaxErrorException: Syntax error: Missing operand after '+' operator.

I want something like if MOEDA2 == “” then set 0.
Or just some other way for the block COMPUTE MOEDAS get through this.

BLOCK:ConstantString

  => VAR @MOEDA4

ENDBLOCK

IF STRINGKEY @MOEDA4 EqualTo ""

SET VAR MOEDA4 "0"

END

try this, if you want empty values to be 0

1 Like

Thanks worked!!! thank you!