# How to implement a custom logic using function node

In this tutorial we will writing a custom logic using the function node to iterate and check whether customer is eligible for a voucher card and create a response list accordingly.

The input JSON Object used in this video is given below.

{
    "CustomerInfo":[
        {
          "customer_name" : "Dan",
          "age" : 35,
          "working_status" : "yes",
          "existing_card" : "no",
          "applied_on" : "29/01/2019"
        },
        {
          "customer_name" : "Dan",
          "age" : 27,
          "working_status" : "yes",
          "existing_card" : "no",
          "applied_on" : "29/01/2019"
        },
        {
          "customer_name" : "Dan",
          "age" : 35,
          "working_status" : "yes",
          "existing_card" : "no",
          "applied_on" : "29/01/2019"
        },
        {
          "customer_name" : "Dan",
          "age" : 35,
          "working_status" : "yes",
          "existing_card" : "no",
          "applied_on" : "29/01/2019"
        }
    ]
}

Link to video