Condition logic works half of the time