标签: swift conditional-statements guard
func getListCount () -> [String]{ return listArray } guard getListCount().count >= 1 else { //handle else condition print("Please add Items or set Alert") return; }
处理与listArray相关的事情。