Link.nextlink()

BlitzMax Forums/BlitzMax Beginners Area/Link.nextlink()

Hi, little confusion over nextlink() method.

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

Didnt think so- tried a small test elsewhere. Its not whats causuing my problem.