if后加()是什么意思 比如:if (t=3) then xxxxxx end if 语句中 if 如果if t = 3 then xxxxxend if 它们有什么区别?

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 23:15:18

if后加()是什么意思 比如:if (t=3) then xxxxxx end if 语句中 if 如果if t = 3 then xxxxxend if 它们有什么区别?
if后加()是什么意思 比如:if (t=3) then xxxxxx end if 语句中 if
如果if t = 3 then
xxxxx
end if
它们有什么区别?

if后加()是什么意思 比如:if (t=3) then xxxxxx end if 语句中 if 如果if t = 3 then xxxxxend if 它们有什么区别?
没什么区别,括号只有在改变优先级时有意义,这种用法是无意义的,当然也不算错.可能是写javascript或是c的习惯吧.