开发者

The term for a variable in a conditional

开发者 https://www.devze.com 2023-02-07 14:40 出处:网络
In the following statemen开发者_JAVA技巧t what is the term to refer to the $country operand? Could it be the evaluated variable?

In the following statemen开发者_JAVA技巧t what is the term to refer to the $country operand? Could it be the evaluated variable?

if($country == "Bulgaria"){}


I don't think there's a language-agnostic term for it.

It could be an expression, an operand, a variable ...


There's no special name for any of the operands, they are completely equal from the language standpoint. You just compare something to something, each "something" can be a variable or not.

0

精彩评论

暂无评论...
验证码 换一张
取 消