I want to create a function something like this:
test[x_] := (Print; Return;)
Except it prints
1 when executed as
test[a] for any
a on the notebook, but when used in computations uses the
2 value instead.
test will output just
test + 1 will output just
2 (because the value returned, 2, is used instead).
I have looked into
Interpretation but that returns a held object and does not allow you do perform operations like
test + 123 without explicitly releasing the hold.