If filter is blank

Hi

I am trying to find out how I select in the IF filter that a continue only should continue if it is not blank.

Eg I have an object that is called value and the IF formula should only continue if this object is not blank.

Kind regards
Mattias

Sadly did not understand if an empty object should pass or not. Anyway, here a version with both variants:

{
  "nodes": [
    {
      "parameters": {
        "functionCode": "return [\n  {\n    json: {\n      value: {\n        containsValues: 1\n      }\n    }\n  },\n  {\n    json: {\n      value: {}\n    }\n  },\n  {\n    json: {\n      value: undefined\n    }\n  },\n  {\n    json: {\n      value: null\n    }\n  },\n  {\n    json: {\n    }\n  }\n];"
      },
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{!!$node[\"Function\"].data[\"value\"]}}",
              "value2": true
            }
          ]
        }
      },
      "name": "IF",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        650,
        200
      ]
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{$node[\"Function\"].data.hasOwnProperty(\"value\") && !!Object.keys($node[\"Function\"].data[\"value\"]).length}}",
              "value2": true
            }
          ]
        }
      },
      "name": "IF2",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        650,
        400
      ]
    }
  ],
  "connections": {
    "Function": {
      "main": [
        [
          {
            "node": "IF",
            "type": "main",
            "index": 0
          },
          {
            "node": "IF2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Hi

Thanks for you answer , but i still dont really get it

Case 1: I have following data and the value 2 is blank then it should not pass the IF

"Time": "2019-12-18T19:11:00.3718452",
"Action": "Update",
"Item": "Checklist",
"Value": "Inserted",
"Value2": "",
"Person": "mla",
"UserId": "5e3010b5-76b7-47ec-a880-c45fe420439c",
"Position": "Admin",
"PositionId": "0ee848c0-3469-4561-99ad-623d8eb87a7d",
"ImageUrl": null


Case 2: I have following data and the value 2 is not blank then it should pass the IF

"Time": "2019-12-18T19:11:00.3718452",
"Action": "Update",
"Item": "Checklist",
"Value": "Inserted",
"Value2": "55",
"Person": "mla",
"UserId": "5e3010b5-76b7-47ec-a880-c45fe420439c",
"Position": "Admin",
"PositionId": "0ee848c0-3469-4561-99ad-623d8eb87a7d",
"ImageUrl": null

Here the example with your data:

{
  "nodes": [
    {
      "parameters": {
        "functionCode": "return [\n  {\n    json: {\n\"Time\": \"2019-12-18T19:11:00.3718452\",\n\"Action\": \"Update\",\n\"Item\": \"Checklist\",\n\"Value\": \"Inserted\",\n\"Value2\": \"\",\n\"Person\": \"mla\",\n\"UserId\": \"5e3010b5-76b7-47ec-a880-c45fe420439c\",\n\"Position\": \"Admin\",\n\"PositionId\": \"0ee848c0-3469-4561-99ad-623d8eb87a7d\",\n\"ImageUrl\": null\n    }\n  },\n  {\n    json: {\n\"Time\": \"2019-12-18T19:11:00.3718452\",\n\"Action\": \"Update\",\n\"Item\": \"Checklist\",\n\"Value\": \"Inserted\",\n\"Value2\": \"55\",\n\"Person\": \"mla\",\n\"UserId\": \"5e3010b5-76b7-47ec-a880-c45fe420439c\",\n\"Position\": \"Admin\",\n\"PositionId\": \"0ee848c0-3469-4561-99ad-623d8eb87a7d\",\n\"ImageUrl\": null\n    }\n  }\n]"
      },
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "typeVersion": 1,
      "position": [
        400,
        450
      ]
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{!!$node[\"Function\"].data[\"Value2\"]}}",
              "value2": true
            }
          ]
        }
      },
      "name": "IF",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        600,
        450
      ]
    },
    {
      "parameters": {},
      "name": "Data passed",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        800,
        400
      ]
    }
  ],
  "connections": {
    "Function": {
      "main": [
        [
          {
            "node": "IF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF": {
      "main": [
        [
          {
            "node": "Data passed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}