Unsolved How can i collect them in a single if statement?
-
Is it a true approach that using or operand and collect all of them in a single if statement?
Is there any more clear way to do?
```if(scln == "GPS Hdop") { gps[TM_GPS_hdop].f; } if(scln == "GPS Vdop") { gps[TM_GPS_vdop].f; } if(scln == "GPS UTC") { gps[TM_GPS_utc].f; } if(scln == "GPS Latitude") { gps[TM_GPS_lat].f; } if(scln == "GPS Longitude") { gps[TM_GPS_lon].f; } if(scln == "GPS Alt") { gps[TM_GPS_alt].f; } if(scln == "GPS Yer Hızı") { gps[TM_GPS_yer_hizi].f; } if(scln == "Dikey Hız") { gps[TM_GPS_dikey_hiz].f; } if(scln == "GPS Yatay Doğruluk") { gps[TM_GPS_yatay_dogruluk].f; } if(scln == "GPS Dikey Doğruluk") { gps[TM_GPS_dikey_dogruluk].f; }
-
-
@suslucoder said in How can i collect them in a single if statement?:
Is it a true approach that using or operand
You certainly would not want to use an
or
here, since they do not execute the same statement as each other.