A bspline curve of order $k$ is given by $$C(t) = \sum_{i=0}^n P_i N_{i,k}(t).$$ where $P_i$ are the control points and $N_{i,k}(t)$ a basis function defined on a knot vector $$T = (t_0,t_1,...t_{n+k}).$$ with $$N_{i,1}(t) = \begin{cases}1 & t_i \le t \lt t_{i+1} \\ 0 & \text{otherwise} \end{cases}$$ $$N_{i,k}(t) = \frac{t-t_i}{t_{i+k-1}-t_i}N_{i,k-1}(t)+\frac{t_{i+k}-t}{t_{i+k}-t_{i+1}}N_{i+1,k-1}(t).$$
A clamped bspline curve has the additional property that the first and last knot in $T$ are of multiplicity $k$, e.g. $T=(0,0,0,0,0.5, 1,1,1,1)$ for a cubic spline.
(Formulas are based on Shape Interrogation for Computer Aided Design and Manufacturing)
What I don't understand now is why the curve at $t=1$ will coincide with the last control point. If I run the recursive definition of the basis functions, I will always come to the point where $$N_{i,1}(1) = \begin{cases}1 & t_i \le 1 \lt t_{i+1} \\ 0 & \text{otherwise}\end{cases}.$$ In the example above where $T=(0,0,0,0,0.5,1,1,1,1)$, I have the intervals $[0,0),[0,0.5),[0.5,1), [1,1)$. None of these will satisfy the condition $t_i \le 1 \lt t_{i+1}$. So all ends of my recursion will result in 0, and $C(1)=0$.
Where am I wrong? Or is there a special case for intervals of form $[a,a)$ ? I implemented a simple version of the formulas above that I can provide if necessary. For $P = ([0,0], [0,1], [1,1], [1,0])$ and $T=(0,0,0,0,1,1,1,1)$ I got

Okay, so "The NURBS book" is regarding $t=0$ and $t=1$ explicitly as special cases:
Source: Piegl, L. A., & Tiller, W. (1997). The NURBS book. Berlin: Springer. page 68.
The algorithms A2.1 and A2.4 described below in this chapter also consider the special cases $u=u_m$ and $u=u_0$.
Especially A2.4, "OneBasisFun", which computes a basis function is relevant to me. From the code:
Source: Piegl, L. A., & Tiller, W. (1997). The NURBS book. Berlin: Springer. page 75.
So I will simply regard and treat them as special cases.