How can I make a "If node"

How can I make a “If node”
How can I make a “If node”
Trying to put out hangers for cable trays automaticly. I Wonder if its possible to use a “If Node”.
Example : If the cable tray has a cable bend, I want the first hangers to be 1. meter away from the bend and the hangers in between to 2.meter