<if="$this->ipsclass->member['id'] == 0">
Hello, guest
</if>
In IPB3 templates this didn't work at all. Instead, to limit your code to show only to guests and not to registered users use the following:
<if test="$this->memberData['member_id'] == 0">
Hello, guest
</if>