Quote:
Originally Posted by OciXCrom
"=" is for assigning a value.
"==" is for comparing/checking.
So using "=" with "if" is invalid.
|
Actually it is valid.
will assign 5 to a and return 5. Of course, this is not how you would want "if" to behave in most cases and most likely not what OP intended.
A case where this is useful(read as "works as you want") is:
PHP Code:
new target = -1
while((target = find_ent_by_class(target, "something"))
__________________