To make the data useful to your script, you need to first cast the return value to a Boolean object, and then convert that object to a primitive Boolean.
为了使得数据有用,您需要首先把返回值转换为Boolean对象,然后将其转变为原始boolean值。
The result returns a Boolean object with value false if the computation is not complete; otherwise, it returns an instance of class object, which contains the result.
如果计算没有完成,结果返回一个值为false的Boolean对象;否则,将返回object类的一个实例,其中包含了计算结果。
Properties may be any .NET object, ranging from a simple boolean value to the representation of database metadata.
而属性可以是任何.NET对象,从一个简单的布尔值到复杂的数据库元数据。
The predicate_result object has an implicit constructor that accepts a Boolean value, which explains why the code works fine even though the expected and actual return types of validate_list differ.
predicate_result对象有一个隐式的构造函数,它接受一个boolean值,因此即使validate_list的期望类型和实际返回类型不同,代码仍然会正常运行。
Other convenience methods are implemented for retrieving object instances of the numeric and Boolean types by means of their fully qualified name.
实现了其它一些便利方法,通过其全限定名来检索numeric和boolean类型的对象实例。
A Stats object may optionally have a list of Stats objects when querying the data in a recursive mode (such as when the Boolean parameter is set to true).
Stats对象在以递归模式查询数据时也可以选择性地包括Stats对象列表。
Asking an object if it is of the nil type (via the nil? Method call) returns a Boolean.
询问一个对象是否是nil类型(通过nil ?方法调用)会返回一个布尔值。
For that effect, JSON defines the following main data structures: number, string, Boolean (true and false), array (an ordered sequence of values), object (collection of key value pairs), and null.
为了实现该目的,JSON定义了以下主要数据结构:数字、字符串、布尔值(真或假)、数组(值的有序排列)、对象(键值对集合)和null。
After loading the Properties object, you close the input stream, and then set your Boolean flag variable (init) value to true, demarcating that the AddressStore object has been initialized.
在加载properties对象之后,关闭输入流,然后设置布尔型标志变量(init)值为true,确定AddressStore对象已经被初始化。
One of the biggest surprises for programmers coming from other languages is that, in Lua, only false and nil are considered false; any object of a non-boolean type is always considered true in tests.
对于习惯使用其他语言的程序员来说,Lua最令人惊讶的地方是,只有false和nil 被看作 false;任何非boolean类型的对象总是被看作true。
When created, a VxWorks mutex object accepts a Boolean parameter that indicates whether priority inheritance should be performed by the mutex.
VxWorks的互斥锁在创建的时候,可以用一个布尔参数表示是否要优先级继承。
The two constructors both need a reference of an object, and the second constructor needs one more, a parameter of boolean type to indicate whether we need to track the resurrection of the object.
此二构造函数都需要一个对象的引用,第二个构造函数还需要一个布尔值参数来表示我们是否需要跟踪对象的重生。
Converts the value of the specified object to an equivalent Boolean value, using the specified culture-specific formatting information.
使用指定的区域性特定格式设置信息,将指定对象的值转换为等效的布尔值。
The exception can be a string, integer, Boolean or an object.
例外可以是串,整数,布尔或是对象。
Returns a Boolean value indicating whether an object exists in the prototype chain of another object.
返回一个布尔值,该值指示对象是否存在于另一个对象的原型链中。
Places a specified data object on the system Clipboard and accepts a Boolean parameter that indicates whether the data object should be left on the Clipboard when the application exits.
将指定的数据对象置于系统剪贴板中,并接受一个布尔参数,该参数指示应用程序退出时是否将数据对象保留在剪贴板中。
Creates an object for the specified application domain based on type, virtual and physical paths, and a Boolean value indicating failure behavior when an object of the specified type already exists.
基于以下参数为指定的应用程序域创建一个对象:类型、虚拟路径和物理路径,以及一个指示当指定类型的对象已存在时的失败行为的布尔值。
Returns a Boolean value that indicates whether or not an object is an instance of a particular class.
传回的布林值将说明物件是否为某个特定类别的执行个体。
Returns a Boolean value that indicates whether or not an object is an instance of a particular class.
传回的布林值将说明物件是否为某个特定类别的执行个体。
应用推荐