Hi, little confusion over nextlink() method.
In the above example i only want the code to enter the statement if prevpathLink.nextlink() returns true - without actually storing nextlink() in prevpathLink. However, it seems to be that when I do this check, rather than saying "If prevpathLink.nextLink() exists" its actually getting the next link, storing it in prevpathLink and then entering the statement.
Is this correct? I hope my explanation makes sense.
Thanks
If prevpathLink.nextLink() prevPathBall=TBall(prevpathLink.nextLink().value())
In the above example i only want the code to enter the statement if prevpathLink.nextlink() returns true - without actually storing nextlink() in prevpathLink. However, it seems to be that when I do this check, rather than saying "If prevpathLink.nextLink() exists" its actually getting the next link, storing it in prevpathLink and then entering the statement.
Is this correct? I hope my explanation makes sense.
Thanks