You need to interchange the hypothesis and the conclusion.
For example,
"If it rains, then they cancel school"
then it should be
"If they cancel school, then it rains."