Not quite sure what you mean. Do you want your code not to execute in versions lower than 10?
Simplest way to do something like this is to enclose the code you do not want to evaluate if the version is less than 10 in an If statement that tests the version. For example this will only beep if you have version 10 or later:
If[$VersionNumber >= 10, Beep[]]