Consider the vector $X:=[X_1,...,X_n]'$ of n Bernoulli trials for $i=1,2,..n$. Each Bernoulli trial can take 0 or 1 with probability $P[X_i=1]=\theta \in (0,1)$. Consider the constant $c\in\mathbb{R}$ and the variables $Y_i=exp\{cX_i\}$, for any $i=1,2,...,n$.
I don't get the follow line: Note that $X_i=0,1$, then $Y_i=1,e^c$. We can then equivalently write $Y_i$ as $Y_i=1+(e^c-1)X_i$.
Why can you write $Y_i$ as above? Thanks in advance!