JSON multiple conditions to make a decision

Hello!

While working with a JSON file, I need to run the below statement in a decision activity. If the statement is true, i’ll send the bot on one direction, if it’s not true, i’ll send the bot on another direction. The issue is the decision activity doesn’t like my “AND” so it gives me an error. Any ideas how to make the below to work?

Jrespondobject(“value1”)(“value1A).ToString=“” AND Jrespondobject(“value2”)(“value2A).ToString = “” AND Jrespondobject(“value3”)(“value3A).ToString= “”

Thank you!

@icosinga

May I know what error are you getting here?

@icosinga

-First of all check get string from json object is correctly or not

-Use equal operators instead of =
Thanks

2 Likes

Error is says

Source:VisualBasicValue
Message: Cannot access child value on Newtonsoft.Json.Linq.JValue.

Exception type:System.InvalidOperationException

2 Likes

Double quotes are missing here @icosinga

Try this :slight_smile:

Jrespondobject(“value1”)(“value1A”).ToString=“” AND Jrespondobject(“value2”)(“value2A”).ToString = “” AND Jrespondobject(“value3”)(“value3A”).ToString= “”