和c一样,在Vimscript中,对于布尔值来说,只有数值0为假;任何非0数值—不管是正数还是负数—都为真。
In Vimscript, as in c, only the numeric value zero is false in a Boolean context; any non-zero numeric value-whether positive or negative-is considered true.
确认产品目录中的字段(正数价格,非空的标题和描述)。
Validation of the fields in the product catalog (positive price, non-blank title and description).
它们可以轻松检查count是零(空)还是正数(非空)。
They can simply check to see if the count is zero (empty) or a positive number (not empty).
序号(Serialnumber):一个惟一的32 位非零正数。
序号(Serialnumber):一个惟一的32 位非零正数。
应用推荐