The term for a variable in a conditional
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.
精彩评论