Controlling a list based on fluid outflow and inflow

Good afternoon,

below I have an image that demonstrates
what do i need when output connectors are opposite the value is equal to 0, when they are perpendicular the value is 1 and lastly when there is no flow on one side the value is 2

Not exactly sure what you are trying to achieve, but these nodes might get you started:
image

I’ve already used these nodes but I don’t know how to check it can help me

here rvt.
https://drive.google.com/drive/folders/1JLiJ0HW2nwRaxBC-dPPMShIlJWFrSRJb?usp=sharing

here dyn.
SETAR TEE COMPRIMENTO EQUIVALENTE.dyn (185.0 KB)