Comparing a variable having an atomic value (number, Boolean, or string) to another such variable or a literal atomic value, and expecting the type of one to be cast automatically to the other type.
把包含原子值(数字、布尔值或字符串)的变量和另一个此类变量或者文字原子值比较,希望一种类型自动转换成另一种类型。
As described above, the Route node evaluates an expression, the result of which is then cast as a Boolean to produce a true or false test condition.
如上所述,Route节点对表达式求值,结果将强制转换为布尔值,以生成真或假的测试条件。
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值。
应用推荐