Detecting if running on dedicated server at runtime ?

Hi, When I add that check around the code and run in the editor all the code thinks it is being run on the server… 8/

Is there any documentation on the differences between running inside the editor in the various modes versus running in standalone builds ? What’s the best strategy for testing and debugging client/server logic when inside the editor ?

Thanks