{
  "patches": {
    "@/main": {
      "nodes": {
        "rJsIvK1sj": {
          "id": "rJsIvK1sj",
          "type": "xod/core/clock",
          "position": {
            "x": 3,
            "y": -6,
            "units": "slots"
          }
        },
        "ByXwvYksj": {
          "id": "ByXwvYksj",
          "type": "xod/core/count",
          "position": {
            "x": 3,
            "y": -5,
            "units": "slots"
          }
        },
        "H1tFwYkoi": {
          "id": "H1tFwYkoi",
          "type": "xod/debug/watch",
          "position": {
            "x": 2,
            "y": -4,
            "units": "slots"
          }
        },
        "Hk7HOYJii": {
          "id": "Hk7HOYJii",
          "type": "@/emit-if-even",
          "position": {
            "x": 4,
            "y": -4,
            "units": "slots"
          }
        },
        "BJ9UOFyos": {
          "id": "BJ9UOFyos",
          "type": "xod/debug/watch",
          "position": {
            "x": 4,
            "y": -3,
            "units": "slots"
          }
        }
      },
      "links": {
        "BJKwvFkii": {
          "id": "BJKwvFkii",
          "output": {
            "nodeId": "rJsIvK1sj",
            "pinKey": "HJU8CE2lW"
          },
          "input": {
            "nodeId": "ByXwvYksj",
            "pinKey": "HJAq-A_8-"
          }
        },
        "H1TtwtJsi": {
          "id": "H1TtwtJsi",
          "output": {
            "nodeId": "ByXwvYksj",
            "pinKey": "r1yhZRd8W"
          },
          "input": {
            "nodeId": "H1tFwYkoi",
            "pinKey": "HkXK-dGob"
          }
        },
        "Hy-8_FJjj": {
          "id": "Hy-8_FJjj",
          "output": {
            "nodeId": "ByXwvYksj",
            "pinKey": "r1yhZRd8W"
          },
          "input": {
            "nodeId": "Hk7HOYJii",
            "pinKey": "HJD2wF1oj"
          }
        },
        "H13DFtyoj": {
          "id": "H13DFtyoj",
          "output": {
            "nodeId": "Hk7HOYJii",
            "pinKey": "BydIYFkss"
          },
          "input": {
            "nodeId": "BJ9UOFyos",
            "pinKey": "HkXK-dGob"
          }
        }
      },
      "comments": {
        "HyZlIT6Bf": {
          "content": "# Welcome to XOD again!\n\nDid you complete the built-in tutorial? We recommend you to do it:\n\n»                                                                «\n»»                                                              ««\n»»»»              [Open Built-in Tutorial Project](xod://actions/open-tutorial)              ««««\n»»                                                              ««\n»                                                                «\n\nAlternatively, try out the [Amperka Colony Kit](https://my.amperka.com/kits/colony-kit?utm_source=ide&utm_medium=ide_comment&utm_campaign=welcome-again) to learn XOD. Help astronauts build a Mars colony on your tabletop. A microcontroller, sensors, actuators, and colorful guide with an exciting story inside.\n\n## Starting a new project?\nDelete this comment and start tinkering.\nOr use “File” menu to open an existing project.",
          "id": "HyZlIT6Bf",
          "position": {
            "x": 0,
            "y": 0,
            "units": "slots"
          },
          "size": {
            "height": 4,
            "width": 12,
            "units": "slots"
          }
        }
      },
      "path": "@/main"
    },
    "@/emit-if-even": {
      "nodes": {
        "HJD2wF1oj": {
          "id": "HJD2wF1oj",
          "type": "xod/patch-nodes/input-number",
          "position": {
            "x": 4,
            "y": -2,
            "units": "slots"
          }
        },
        "HyExuFkss": {
          "id": "HyExuFkss",
          "type": "xod/patch-nodes/not-implemented-in-xod",
          "position": {
            "x": 4,
            "y": -1,
            "units": "slots"
          }
        },
        "BydIYFkss": {
          "id": "BydIYFkss",
          "type": "xod/patch-nodes/output-number",
          "position": {
            "x": 4,
            "y": 0,
            "units": "slots"
          }
        }
      },
      "path": "@/emit-if-even",
      "attachments": [
        {
          "filename": "patch.cpp",
          "encoding": "utf-8",
          "content": "\nnode {\n    void evaluate(Context ctx) {\n        int input = getValue<input_IN>(ctx);\n        \n        if (input % 2 == 0) {\n            emitValue<output_OUT>(ctx, input);\n        }\n\n        // Do not emit *anything* if odd.\n    }\n}\n"
        }
      ]
    }
  },
  "name": "test-eval-only-if-emit"
}
