group.last()
Parameters
None.
Returns
A Waypoint
instance.
This method returns the last waypoint in the group. "Last" is determined by the trigger point of the waypoints in the group, where "last" is the waypoint with the bottom-most (or right-most for horizontal waypoints) trigger point.
In the example below, we'll set up two groups of waypoints, even and odds. Both groups of waypoints do the same thing: If the waypoint hit is the last waypoint in the group, it will produce a different notification from the others.
Odd
Even
Odd
Even
Odd
Even
Odd
Even
Odd
Even