it's best solution for guard if you have value int
guard (shippingID != 0 ) else { ShowAlerts.displayMessage(message: "Error".localized, body: "Select the Shipping Type".localized, messageError: true) return }