programming

How to use multiple sensors to control few output, im making a robot using 3 ultrasonic sensor to control 2 motors. I wan't my robot to do one scenario once all ultrasonic sensors reach the given condition.

Example for two sensors:

if ( (sensor1_output == something1) && (sensor2_output == something2) ) execute_action();