The rewritten form of the sentence is "Tell them the truth when you talk to them".
A shift in mood is known to be found a sentence that uses a two or more mood.
An example: Wash your teeth if you want to eat dinner. Note that this sentence began an imperative phrase and then later by a conditional mood as in the case above.
Learn more about sentence from
https://brainly.com/question/11352260