The code is as follows.
this.requiredVehicle = order.vehicle
? order.vehicle
: order.required_vehicle_type && order.required_vehicle_type;
If vehicle is present in the order, that value should be assigned else if required_vehicle_type is present, it should be assigned. How to simplify the above code ?