Question: For example, inside the loop could i do something like this

```
if lastpost { 
}
else {
}

```

Answer: 
```
if (!get_next_post_link()) { 
    echo 'the last post here'; 
}

```
```
if (!get_previous_post_link()) { 
    echo 'the last post here'; 
}

```

OR 

```
if (get_next_post_link()) { 
    echo 'the last post here'; 
}

```