How to build condition with array items ?
After a WebHook I can receive 3 contents of the same Json
button -> CurrentEventID = "79"
I want to compare:
if IdEvent == "-1" then new subscription
if IdEvent < CurrentEventID then new subscription
if idEvent == CurrentEventID then show cards
if it brings just personal data , I need to send to specific block to NEW SUBSCRIPTIONS and capture data:
{
"Subscriptions": [
{
"idEvent": "-1",
"idSubscrip": "-1",
"idPlayer": "4",
"idDay": "-1",
"Category": ""
"Birth": "1960-04-15"
"otherdata...": ""
}
]
}
if it bring a old subscription and need to capture new data, I need to send to specific block to NEW SUBSCRIPTIONS and capture data
{
"Subscriptions": [
{
"idEvent": "63",
"idSubscrip": "14027",
"idPlayer": "4",
"idDay": "1",
"Category": "Master"
"Birth": "1960-04-15"
"otherdata...": ""
}
]
}
if it brings a current subscription I want cards from data bellow to other actions:
{
"Subscriptions": [
{
"idEvent": "69",
"idSubscrip": "27",
"idPlayer": "4",
"idDay": "1",
"Category": "Over50"
"Birth": "1960-04-15"
"otherdata...": ""
},
{
"idEvent": "69",
"idSubscrip": "28",
"idPlayer": "4",
"idDay": "2",
"Category": "Over50"
"Birth": "1960-04-15"
"otherdata...": ""
}
]
}
1 Reply
Have you tried using the Condition block? Anything that does not work as expected?