gpt4 book ai didi

ColdFusion "Yes"eq "True"; "No"eq "假

转载 作者:行者123 更新时间:2023-12-03 11:20:52 27 4
gpt4 key购买 nike

为什么 ?

<cfif "yes" eq "true">

Yes equals true.

<cfelse>

Yes does not equal true.

</cfif>

页面输出。
“是的就等于真的。”

最佳答案

Chris 和 Keshav 的答案是正确的,ColdFusion 会转换这些值。这是有关 ColdFusion 数据转换的官方文档。

Conversion between types

Value     As Boolean     As number     As date-time     As string

"Yes" True 1 Error "Yes"

"No" False 0 Error "No"

True True 1 Error "Yes"

False False 0 Error "No"

关于ColdFusion "Yes"eq "True"; "No"eq "假,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15494362/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com