Last
Resource-Specific System Function
The Last function returns the node's name-index number from which a Resource has just traveled. Last can be useful to choose the appropriate graphic or to reset a variable. You can also check the last node's name-index number by specifying path network name.name of the node. For example, if you wanted to know if the last node was N5 on the network Net3, you could specify "If Last() = Net3.N5 Then..." in the node entry logic.
Syntax
Last()
Examples
Var1=Last()
If Last() = 13 Then Var3 = 0
If Last() = PathNet1.N1 Then Inc Var1
Remarks
Last is valid in node entry logic.