preview version

How to switch the displayed text according to the condition