Ayuda para utilizar correctamente la funcion "if"

Buen dia comunidad, estoy tratando de agregar este siguiente valor al momento de colocar la opcion “if”: JSON_ResponseApi(“fechaInicial”)(“dia”)=“1”; sin embargo me aparece este error: Argument ‘Condition’: BC30512: Option Strict On disallows implicit conversions from ‘JToken’ to ‘Boolean’. The selected value is incompatible with the property type.

Solicito su ayuda por favor ayudandome en como solucionar dicho error para poder utilizar los parametros if correctamente para mi proyecto.

Hi @Renzo

Can you try the below syntax in If Condition:

If 
JSON_ResponseApi("StartDate")("day").ToString() = "1" 
Then
    ' Your code when the condition is true
Else
    ' Your code when the condition is false
End If

Regards

1 Like

Thank you so much for that! It’s really appreciated your help.

1 Like

Hi @Renzo

If your query is resolved please mark the post as solution to close the loop.

Happy Automation

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.