// title: if-then-else alternative to Platform.case // author: LightRate // description: // code: // Normally, controlling platform specific commands is implemented with Platform.case: ( Platform.case {\osx} { openOS("https://apple.com") } {\linux} { openOS("https://linux.com") } {\unix} { openOS("http://unix.org") } {\windows} { openOS("https://microsoft.com") } ); // But what if you need an 'if-then-else' style of Platform control? // In these situations, the Platform.case method isn't the most elegant, or efficient solution. // Here is an alternative route: if( thisProcess.platform.asSymbol == 'an OSXPlatform', { // true function }, { // false function } )