SWI-Prolog, 54 bytes
Code
assert(d(E,F):-(print(E),print(F))). d(123456,123456).
Original Output
true.
123456123456
true.
Changed output
true.
false.
assert(d(E,F):-(print(E),print(F))). d(123456,123456).
true.
123456123456
true.
true.
false.