VBScript CBool လုပ်ဆောင်ချက်
❮ VBScript အကိုးအကားကို အပြီးသတ်ပါ။CBool လုပ်ဆောင်ချက်သည် စကားရပ်တစ်ခုကို Boolean အမျိုးအစားသို့ ပြောင်းပေးသည်။
စကားရပ်သည် ဂဏန်းတန်ဖိုးဖြစ်ရမည်။
အထားအသို
CBool(expression)
Parameter | Description |
---|---|
expression | Required. Any valid expression. A nonzero value returns True, zero returns False. A run-time error occurs if the expression can not be interpreted as a numeric value |
ဥပမာ
ဥပမာ
<%
response.write(CBool(5) & "<br />")
response.write(CBool(0) & "<br />")
response.write(CBool(-5) & "<br />")
%>
အထက်ဖော်ပြပါ ကုဒ်၏ အထွက်သည်-
True
False
True
❮ VBScript အကိုးအကားကို အပြီးသတ်ပါ။