# How to do if else condition using switch node

In this tutorial we will implement a flow which does the condition check on the input message payload and route the flow to the appropriate target node.

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

Input for rate < 500

{
   "product" : "laptop",
   "rate" : 300,
   "unit" : "AUD"
}

Input for rate > 500

{
   "product" : "laptop",
   "rate" : 900,
   "unit" : "AUD"
}

Link to video