Ios PFUser signupinbackgroundithblock的Bool值的意义

Ios PFUser signupinbackgroundithblock的Bool值的意义,ios,parse-platform,pfobject,pfuser,Ios,Parse Platform,Pfobject,Pfuser,我想知道功能块中成功布尔值的意义是什么?正如我所看到的,parse中的示例代码忽略它,只检查错误是否为零 如果bool值不是必需的,那么为什么它首先存在呢 user.signUpInBackgroundWithBlock({ (succeeded: Bool, error: NSError?) -> Void in if error == nil { if succeeded { // IS THIS REQUIRED

我想知道功能块中成功布尔值的意义是什么?正如我所看到的,parse中的示例代码忽略它,只检查错误是否为零

如果bool值不是必需的,那么为什么它首先存在呢

        user.signUpInBackgroundWithBlock({ (succeeded: Bool, error: NSError?) -> Void in
            if error == nil {
                if succeeded { // IS THIS REQUIRED AT ALL??
                }
            }
            else {
            }
        });
或者我们可以这样做

        user.signUpInBackgroundWithBlock({ (succeeded: Bool, error: NSError?) -> Void in
            if error == nil {
                //Do something
            }
            else {
            }
        });

看起来它们应该是同义词。如果错误为零,在某些情况下布尔值可能是假的吗?这就是令人困惑的地方。