conditional platform code